SectionStorageDefinition
class SectionStorageDefinition extends PluginDefinition implements ContextAwarePluginDefinitionInterface (View source)
Provides section storage type plugin definition.
Traits
Provides a trait for context-aware object-based plugin definitions.
Properties
| protected string | $id | The plugin ID. |
from PluginDefinition |
| protected string | $class | A fully qualified class name. |
from PluginDefinition |
| protected string | $provider | The plugin provider. |
from PluginDefinition |
| protected ContextDefinitionInterface[] | $contextDefinitions | The context definitions for this plugin definition. |
from ContextAwarePluginDefinitionTrait |
| protected int | $weight | The plugin weight. |
|
| protected array | $additional | Any additional properties and values. |
Methods
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition().
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::getContextDefinitions().
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::getContextDefinition().
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::addContextDefinition().
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::removeContextDefinition().
LayoutDefinition constructor.
Gets any arbitrary property.
Sets a value to an arbitrary property.
Returns the plugin weight.
Details
string
id()
Gets the unique identifier of the plugin.
PluginDefinitionInterface
setClass(string $class)
Sets the class.
string
getClass()
Gets the class.
string
getProvider()
Gets the plugin provider.
The provider is the name of the module that provides the plugin, or "core', or "component".
hasContextDefinition($name)
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition().
getContextDefinitions()
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::getContextDefinitions().
getContextDefinition($name)
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::getContextDefinition().
addContextDefinition($name, ContextDefinitionInterface $definition)
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::addContextDefinition().
removeContextDefinition($name)
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::removeContextDefinition().
__construct(array $definition = [])
LayoutDefinition constructor.
mixed
get(string $property)
Gets any arbitrary property.
$this
set(string $property, mixed $value)
Sets a value to an arbitrary property.
int
getWeight()
Returns the plugin weight.