ResponsiveImage::getInfo

public ResponsiveImage::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

core/modules/responsive_image/src/Element/ResponsiveImage.php, line 17

Class

ResponsiveImage
Provides a responsive image element.

Namespace

Drupal\responsive_image\Element

Code

public function getInfo() {
  return [
    '#theme' => 'responsive_image',
    '#attached' => [
      'library' => ['core/picturefill'],
    ],
  ];
}
doc_Drupal
2016-10-29 09:37:54
Comments
Leave a Comment

Please login to continue.