* ... * ... * * ``` * * @see https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-toolbar-ifhasdropdown * @internal */ class IfHasDropdownViewHelper extends AbstractConditionViewHelper { public function initializeArguments(): void { parent::initializeArguments(); $this->registerArgument('class', ToolbarItemInterface::class, 'The toolbar item class to be checked for providing a drop down', true); } /** * @param array{class: object} $arguments */ public static function verdict(array $arguments, RenderingContextInterface $renderingContext): bool { return $arguments['class'] instanceof ToolbarItemInterface && $arguments['class']->hasDropDown(); } }