Mercurial > hg > isophonics-drupal-site
view core/modules/responsive_image/src/Element/ResponsiveImage.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php 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'], ], ]; } }