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
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\bootstrap\Annotation\BootstrapSetting
Expanded class hierarchy of BootstrapSetting
See also
\Drupal\bootstrap\Plugin\SettingInterface
\Drupal\bootstrap\Plugin\SettingManager
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.
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.
File
- themes/
contrib/ bootstrap/ src/ Annotation/ BootstrapSetting.php, line 33 - Contains \Drupal\bootstrap\Annotation\BootstrapSetting.
Namespace
Drupal\bootstrap\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BootstrapSetting:: |
public | property | The setting's default value. | |
BootstrapSetting:: |
public | property | The setting's description. | |
BootstrapSetting:: |
public | property | The setting's groups. | |
BootstrapSetting:: |
public | property | The setting's see references. | |
BootstrapSetting:: |
public | property | The setting's title. | |
BootstrapSetting:: |
public | property | The setting's type. | |
BootstrapSetting:: |
public | function |
Constructs a Plugin object. Overrides Plugin:: |
|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |