Neos\FluidAdaptor\ViewHelpers\Form\UploadViewHelper::initializeArguments PHP Метод

initializeArguments() публичный Метод

public initializeArguments ( ) : void
Результат void
    public function initializeArguments()
    {
        parent::initializeArguments();
        $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
        $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
        $this->registerArgument('collection', 'string', 'Name of the resource collection this file should be uploaded to', false, '');
        $this->registerUniversalTagAttributes();
    }

Usage Example

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(UploadViewHelper::class, array('setErrorClassAttribute', 'registerFieldNameForFormTokenGeneration', 'getMappingResultsForProperty'));
     $this->mockPropertyMapper = $this->createMock(PropertyMapper::class);
     $this->viewHelper->_set('propertyMapper', $this->mockPropertyMapper);
     $this->arguments['name'] = '';
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }