FluidTYPO3\Vhs\ViewHelpers\Resource\AbstractImageViewHelper::initializeArguments PHP Method

initializeArguments() public method

Initialize arguments.
public initializeArguments ( ) : void
return void
    public function initializeArguments()
    {
        parent::initializeArguments();
        $this->registerArgument('relative', 'boolean', 'If FALSE resource URIs are rendered absolute. URIs in backend mode are always absolute.', false, true);
        $this->registerArgument('width', 'string', 'Width of the image. Numeric value in pixels or simple calculations. See imgResource.width ' . 'for possible options.', false, null);
        $this->registerArgument('height', 'string', 'Height of the image. Numeric value in pixels or simple calculations. See imgResource.width for ' . 'possible options.', false, null);
        $this->registerArgument('minWidth', 'string', 'Minimum width of the image. Numeric value in pixels or simple calculations. See imgResource.width ' . 'for possible options.', false, null);
        $this->registerArgument('minHeight', 'string', 'Minimum height of the image. Numeric value in pixels or simple calculations. ' . 'See imgResource.width for possible options.', false, null);
        $this->registerArgument('maxWidth', 'string', 'Maximum width of the image. Numeric value in pixels or simple calculations. ' . 'See imgResource.width for possible options.', false, null);
        $this->registerArgument('maxHeight', 'string', 'Maximum height of the image. Numeric value in pixels or simple calculations. ' . 'See imgResource.width for possible options.', false, null);
    }

Usage Example

 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('usemap', 'string', 'A hash-name reference to a map element with which to associate the image.', FALSE, NULL);
     $this->registerTagAttribute('ismap', 'string', 'Specifies that its img element provides access to a server-side image map.', FALSE, NULL);
     $this->registerTagAttribute('alt', 'string', 'Equivalent content for those who cannot process images or who have image loading disabled.', FALSE, NULL);
     $this->registerArgument('as', 'string', 'If specified, a template variable with this name containing the requested data will be inserted instead of returning it.', FALSE, NULL);
 }