Mercurial > hg > isophonics-drupal-site
comparison core/modules/responsive_image/src/Element/ResponsiveImage.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\responsive_image\Element; | |
4 | |
5 use Drupal\Core\Render\Element\RenderElement; | |
6 | |
7 /** | |
8 * Provides a responsive image element. | |
9 * | |
10 * @RenderElement("responsive_image") | |
11 */ | |
12 class ResponsiveImage extends RenderElement { | |
13 | |
14 /** | |
15 * {@inheritdoc} | |
16 */ | |
17 public function getInfo() { | |
18 return [ | |
19 '#theme' => 'responsive_image', | |
20 '#attached' => [ | |
21 'library' => ['core/picturefill'], | |
22 ], | |
23 ]; | |
24 } | |
25 | |
26 } |