ResponsiveImage.php in Zircon Profile 8.0
Same filename and directory in other branches
Namespace
Drupal\responsive_image\ElementFile
core/modules/responsive_image/src/Element/ResponsiveImage.phpView source
<?php
/**
* @file
* Contains \Drupal\responsive_image\Element\ResponsiveImage.
*/
namespace Drupal\responsive_image\Element;
use Drupal\Core\Render\Element\RenderElement;
/**
* Provides a responsive image element.
*
* @RenderElement("responsive_image")
*/
class ResponsiveImage extends RenderElement {
/**
* {@inheritdoc}
*/
public function getInfo() {
return [
'#theme' => 'responsive_image',
'#attached' => [
'library' => [
'core/picturefill',
],
],
];
}
}
Classes
Name | Description |
---|---|
ResponsiveImage | Provides a responsive image element. |