Inheritance: extends FluidTYPO3\Vhs\ViewHelpers\Media\AbstractMediaViewHelper
Example #1
0
 /**
  * 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);
     $this->registerTagAttribute('ismap', 'string', 'Specifies that its img element provides access to a server-side image map.', FALSE, '');
     $this->registerTagAttribute('alt', 'string', 'Equivalent content for those who cannot process images or who have image loading disabled.', TRUE);
 }
Example #2
0
 /**
  * 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.');
     $this->registerTagAttribute('ismap', 'string', 'Specifies that its img element provides access to a server-side image map.', false, '');
     $this->registerTagAttribute('alt', 'string', 'Equivalent content for those who cannot process images or who have image loading disabled.', true);
     $this->registerArgument('srcset', 'mixed', 'List of width used for the srcset variants (either CSV, array or implementing Traversable)');
     $this->registerArgument('srcsetDefault', 'integer', 'Default width to use as a fallback for browsers that don\'t support srcset');
 }