abstract class PropertyBase in ThemeKey 8
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\themekey\Plugin\SingletonPluginBase implements ContainerFactoryPluginInterface
- class \Drupal\themekey\PropertyBase implements PropertyInterface
- class \Drupal\themekey\Plugin\SingletonPluginBase implements ContainerFactoryPluginInterface
Expanded class hierarchy of PropertyBase
3 files declare their use of PropertyBase
- DrupalRouteName.php in src/
Plugin/ Property/ DrupalRouteName.php - Contains \Drupal\themekey\Plugin\Property\DrupalRouteName.
- NodeNid.php in src/
Plugin/ Property/ NodeNid.php - Contains \Drupal\themekey\Plugin\Property\DrupalRouteName.
- SystemQueryParam.php in src/
Plugin/ Property/ SystemQueryParam.php - Contains \Drupal\themekey\Plugin\Property\SystemQueryParam.
File
- src/
PropertyBase.php, line 12 - Provides Drupal\themekey\PropertyBase.
Namespace
Drupal\themekeyView source
abstract class PropertyBase extends SingletonPluginBase implements PropertyInterface {
protected $engine;
public function setEngine($engine) {
$this->engine = $engine;
}
/**
* @return \Drupal\Core\Routing\RouteMatchInterface
*/
public function getRouteMatch() {
return $this->engine
->getRouteMatch();
}
/**
* @return \Drupal\Core\Config\ConfigFactoryInterface
*/
public function getConfigFactory() {
return $this->{$engine}
->getConfigFactory();
}
/**
* {@inheritdoc}
*/
public function getName() {
return $this->pluginDefinition['name'];
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this->pluginDefinition['description'];
}
/**
* {@inheritdoc}
*/
public function isPageCacheCompatible() {
return $this->pluginDefinition['page_cache_compatible'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
PropertyBase:: |
protected | property | ||
PropertyBase:: |
public | function | ||
PropertyBase:: |
public | function |
Return the Description of the ThemeKey property. Overrides PropertyInterface:: |
|
PropertyBase:: |
public | function |
Return the name of the ThemeKey property. Overrides PropertyInterface:: |
|
PropertyBase:: |
public | function | ||
PropertyBase:: |
public | function | ||
PropertyBase:: |
public | function | ||
PropertyInterface:: |
public | function | Return the the current values of the ThemeKey property. | 3 |
SingletonPluginBase:: |
protected static | property | ||
SingletonPluginBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |