Version 1
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / General / Images / ImageResponsive.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Setting\General\Images\ImageResponsive.
5  */
6
7 namespace Drupal\bootstrap\Plugin\Setting\General\Images;
8
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
12
13 /**
14  * The "image_responsive" theme setting.
15  *
16  * @ingroup plugins_setting
17  *
18  * @BootstrapSetting(
19  *   id = "image_responsive",
20  *   type = "checkbox",
21  *   title = @Translation("Responsive Images"),
22  *   description = @Translation("Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code> and <code>height: auto;</code> to the image so that it scales nicely to the parent element."),
23  *   defaultValue = 1,
24  *   groups = {
25  *     "general" = @Translation("General"),
26  *     "images" = @Translation("Images"),
27  *   },
28  * )
29  */
30 class ImageResponsive extends SettingBase {}