public function ResponsiveImage::getInfo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/responsive_image/src/Element/ResponsiveImage.php \Drupal\responsive_image\Element\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 21 - Contains \Drupal\responsive_image\Element\ResponsiveImage.
Class
- ResponsiveImage
- Provides a responsive image element.
Namespace
Drupal\responsive_image\ElementCode
public function getInfo() {
return [
'#theme' => 'responsive_image',
'#attached' => [
'library' => [
'core/picturefill',
],
],
];
}