class BootstrapSetting

Defines a BootstrapSetting annotation object.

Plugin Namespace: "Plugin/Setting".

@Attributes({

@Attribute("defaultValue", type = "mixed", required = true),

@Attribute("type", type = "string", required = true), })

Hierarchy

  • class \Drupal\bootstrap\Annotation\BootstrapSetting extends \Drupal\Component\Annotation\Plugin

Expanded class hierarchy of BootstrapSetting

See Also

Related topics

57 files declare their use of BootstrapSetting
57 classes are annotated with BootstrapSetting
Breadcrumb in src/Plugin/Setting/Components/Breadcrumbs/Breadcrumb.php
The "breadcrumb" theme setting.
BreadcrumbHome in src/Plugin/Setting/Components/Breadcrumbs/BreadcrumbHome.php
The "breadcrumb_home" theme setting.
BreadcrumbTitle in src/Plugin/Setting/Components/Breadcrumbs/BreadcrumbTitle.php
The "breadcrumb_title" theme setting.
ButtonColorize in src/Plugin/Setting/General/Buttons/ButtonColorize.php
The "button_colorize" theme setting.
ButtonIconize in src/Plugin/Setting/General/Buttons/ButtonIconize.php
The "button_iconize" theme setting.

... See full list

Namespace

Drupal\bootstrap\Annotation
Source
class BootstrapSetting extends Plugin {

  /**
   * The setting's description.
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $description;

  /**
   * The setting's default value.
   *
   * @var mixed
   */
  public $defaultValue;

  /**
   * The setting's groups.
   *
   * @var \Drupal\Core\Annotation\Translation[]
   */
  public $groups = [];

  /**
   * The setting's title.
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $title;

  /**
   * The setting's type.
   *
   * @var string
   */
  public $type;

  /**
   * The setting's see references.
   *
   * @var array
   */
  public $see = [];

  /**
   * {@inheritdoc}
   */
  public function __construct($values) {
    if (!isset($values['groups'])) {
      $values['groups'] = ['general' => t('General')];
    }
    parent::__construct($values);
  }

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
BootstrapSetting::$defaultValue public property The setting's default value.
BootstrapSetting::$description public property The setting's description.
BootstrapSetting::$groups public property The setting's groups.
BootstrapSetting::$see public property The setting's see references.
BootstrapSetting::$title public property The setting's title.
BootstrapSetting::$type public property The setting's type.
BootstrapSetting::__construct public function