You are here

class BootstrapSetting in Express 8

Defines a BootstrapSetting annotation object.

Plugin Namespace: "Plugin/Setting".

Plugin annotation


@Attributes({

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

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

Hierarchy

Expanded class hierarchy of BootstrapSetting

See also

\Drupal\bootstrap\Plugin\SettingInterface

\Drupal\bootstrap\Plugin\SettingManager

Plugin API

57 files declare their use of BootstrapSetting
Breadcrumb.php in themes/contrib/bootstrap/src/Plugin/Setting/Components/Breadcrumbs/Breadcrumb.php
Contains \Drupal\bootstrap\Plugin\Setting\Components\Breadcrumbs\Breadcrumb.
BreadcrumbHome.php in themes/contrib/bootstrap/src/Plugin/Setting/Components/Breadcrumbs/BreadcrumbHome.php
Contains \Drupal\bootstrap\Plugin\Setting\Components\Breadcrumbs\BreadcrumbHome.
BreadcrumbTitle.php in themes/contrib/bootstrap/src/Plugin/Setting/Components/Breadcrumbs/BreadcrumbTitle.php
Contains \Drupal\bootstrap\Plugin\Setting\Components\Breadcrumbs\BreadcrumbTitle.
ButtonColorize.php in themes/contrib/bootstrap/src/Plugin/Setting/General/Buttons/ButtonColorize.php
Contains \Drupal\bootstrap\Plugin\Setting\General\Buttons\ButtonColorize.
ButtonIconize.php in themes/contrib/bootstrap/src/Plugin/Setting/General/Buttons/ButtonIconize.php
Contains \Drupal\bootstrap\Plugin\Setting\General\Buttons\ButtonIconize.

... See full list

57 classes are annotated with BootstrapSetting
Breadcrumb in themes/contrib/bootstrap/src/Plugin/Setting/Components/Breadcrumbs/Breadcrumb.php
The "breadcrumb" theme setting.
BreadcrumbHome in themes/contrib/bootstrap/src/Plugin/Setting/Components/Breadcrumbs/BreadcrumbHome.php
The "breadcrumb_home" theme setting.
BreadcrumbTitle in themes/contrib/bootstrap/src/Plugin/Setting/Components/Breadcrumbs/BreadcrumbTitle.php
The "breadcrumb_title" theme setting.
ButtonColorize in themes/contrib/bootstrap/src/Plugin/Setting/General/Buttons/ButtonColorize.php
The "button_colorize" theme setting.
ButtonIconize in themes/contrib/bootstrap/src/Plugin/Setting/General/Buttons/ButtonIconize.php
The "button_iconize" theme setting.

... See full list

File

themes/contrib/bootstrap/src/Annotation/BootstrapSetting.php, line 33
Contains \Drupal\bootstrap\Annotation\BootstrapSetting.

Namespace

Drupal\bootstrap\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
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 Constructs a Plugin object. Overrides Plugin::__construct
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider