Neos\FluidAdaptor\ViewHelpers\Security\IfHasRoleViewHelper::initializeArguments PHP Method

initializeArguments() public method

Initializes the "then" and "else" arguments
public initializeArguments ( )
    public function initializeArguments()
    {
        $this->registerArgument('role', 'mixed', 'The role or role identifier.', true);
        $this->registerArgument('packageKey', 'string', 'PackageKey of the package defining the role.', false, null);
        $this->registerArgument('account', Account::class, 'If specified, this subject of this check is the given Account instead of the currently authenticated account', false, null);
        $this->registerArgument('then', 'mixed', 'Value to be returned if the condition if met.', false);
        $this->registerArgument('else', 'mixed', 'Value to be returned if the condition if not met.', false);
    }