Version 1
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / General / Tables / TableResponsive.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Setting\General\Tables\TableResponsive.
5  */
6
7 namespace Drupal\bootstrap\Plugin\Setting\General\Tables;
8
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
12
13 /**
14  * The "table_responsive" theme setting.
15  *
16  * @ingroup plugins_setting
17  *
18  * @BootstrapSetting(
19  *   id = "table_responsive",
20  *   type = "select",
21  *   title = @Translation("Responsive tables"),
22  *   description = @Translation("Wraps tables with <code>.table-responsive</code> to make them horizontally scroll when viewing them on devices under 768px. When viewing on devices larger than 768px, you will not see a difference in the presentational aspect of these tables. The <code>Automatic</code> option will only apply this setting for front-end facing tables, not the tables in administrative areas."),
23  *   defaultValue = -1,
24  *   weight = 1,
25  *   groups = {
26  *     "general" = @Translation("General"),
27  *     "tables" = @Translation("Tables"),
28  *   },
29  *   options = {
30  *     "-1" = @Translation("Automatic"),
31  *     "0" = @Translation("Disabled"),
32  *     "1" = @Translation("Enabled"),
33  *   },
34  * )
35  */
36 class TableResponsive extends SettingBase {}