class InheritedContextDefinition
Inherited class used for testing.
Hierarchy
- class \Drupal\Core\Plugin\Context\ContextDefinition implements \Drupal\Core\Plugin\Context\ContextDefinitionInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\TypedData\TypedDataTrait
- class \Drupal\Tests\Core\Plugin\Fixtures\InheritedContextDefinition extends \Drupal\Core\Plugin\Context\ContextDefinition
Expanded class hierarchy of InheritedContextDefinition
See also
\Drupal\Tests\Core\Plugin\Context\ContextDefinitionIsSatisfiedTest
1 file declares its use of InheritedContextDefinition
- ContextDefinitionIsSatisfiedTest.php in core/
tests/ Drupal/ Tests/ Core/ Plugin/ Context/ ContextDefinitionIsSatisfiedTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ Fixtures/ InheritedContextDefinition.php, line 12
Namespace
Drupal\Tests\Core\Plugin\FixturesView source
class InheritedContextDefinition extends ContextDefinition {
}
Members
| Title Sort descending | Deprecated | Modifiers | Object type | Summary | Member alias | Overriden Title | Overrides |
|---|---|---|---|---|---|---|---|
| ContextDefinition::$constraints | protected | property | An array of constraints. | ||||
| ContextDefinition::$dataType | protected | property | The data type of the data. | ||||
| ContextDefinition::$defaultValue | protected | property | The default value. | ||||
| ContextDefinition::$description | protected | property | The human-readable description. | ||||
| ContextDefinition::$entityContextDefinition | Deprecated | private | property | An EntityContextDefinition instance, for backwards compatibility. | |||
| ContextDefinition::$isMultiple | protected | property | Whether the data is multi-valued, i.e. a list of data items. | ||||
| ContextDefinition::$isRequired | protected | property | Determines whether a data value is required. | ||||
| ContextDefinition::$label | protected | property | The human-readable label. | ||||
| ContextDefinition::addConstraint | public | function | Adds a validation constraint. | Overrides ContextDefinitionInterface::addConstraint | |||
| ContextDefinition::create | public static | function | Creates a new context definition. | ||||
| ContextDefinition::dataTypeMatches | protected | function | Checks if this definition's data type matches that of the given context. | ||||
| ContextDefinition::getConstraint | public | function | Gets a validation constraint. | Overrides ContextDefinitionInterface::getConstraint | |||
| ContextDefinition::getConstraintObjects | protected | function | Extracts an array of constraints for a context definition object. | 1 | |||
| ContextDefinition::getConstraints | public | function | Gets an array of validation constraints. | Overrides ContextDefinitionInterface::getConstraints | |||
| ContextDefinition::getDataDefinition | public | function | Returns the data definition of the defined context. | Overrides ContextDefinitionInterface::getDataDefinition | |||
| ContextDefinition::getDataType | public | function | Gets the data type needed by the context. | Overrides ContextDefinitionInterface::getDataType | |||
| ContextDefinition::getDefaultValue | public | function | Gets the default value for this context definition. | Overrides ContextDefinitionInterface::getDefaultValue | |||
| ContextDefinition::getDescription | public | function | Gets a human readable description. | Overrides ContextDefinitionInterface::getDescription | |||
| ContextDefinition::getLabel | public | function | Gets a human readable label. | Overrides ContextDefinitionInterface::getLabel | |||
| ContextDefinition::getSampleValues | protected | function | Returns typed data objects representing this context definition. | 1 | |||
| ContextDefinition::initializeEntityContextDefinition | private | function | Initializes $this->entityContextDefinition for backwards compatibility. | ||||
| ContextDefinition::isMultiple | public | function | Determines whether the data is multi-valued, i.e. a list of data items. | Overrides ContextDefinitionInterface::isMultiple | |||
| ContextDefinition::isRequired | public | function | Determines whether the context is required. | Overrides ContextDefinitionInterface::isRequired | |||
| ContextDefinition::isSatisfiedBy | public | function | Determines if this definition is satisfied by a context object. | Overrides ContextDefinitionInterface::isSatisfiedBy | |||
| ContextDefinition::setConstraints | public | function | Sets the array of validation constraints. | Overrides ContextDefinitionInterface::setConstraints | |||
| ContextDefinition::setDataType | public | function | Sets the data type needed by the context. | Overrides ContextDefinitionInterface::setDataType | |||
| ContextDefinition::setDefaultValue | public | function | Sets the default data value. | Overrides ContextDefinitionInterface::setDefaultValue | |||
| ContextDefinition::setDescription | public | function | Sets the human readable description. | Overrides ContextDefinitionInterface::setDescription | |||
| ContextDefinition::setLabel | public | function | Sets the human readable label. | Overrides ContextDefinitionInterface::setLabel | |||
| ContextDefinition::setMultiple | public | function | Sets whether the data is multi-valued. | Overrides ContextDefinitionInterface::setMultiple | |||
| ContextDefinition::setRequired | public | function | Sets whether the data is required. | Overrides ContextDefinitionInterface::setRequired | |||
| ContextDefinition::__construct | public | function | Constructs a new context definition object. | 1 | |||
| ContextDefinition::__sleep | public | function | Implements magic __sleep() method. | ||||
| DependencySerializationTrait::$_entityStorages | protected | property | An array of entity type IDs keyed by the property name of their storages. | ||||
| DependencySerializationTrait::$_serviceIds | protected | property | An array of service IDs keyed by property name used for serialization. | ||||
| DependencySerializationTrait::__sleep | public | function | Aliased as: traitSleep | 1 | |||
| DependencySerializationTrait::__wakeup | public | function | 2 | ||||
| TypedDataTrait::$typedDataManager | protected | property | The typed data manager used for creating the data types. | ||||
| TypedDataTrait::getTypedDataManager | public | function | Gets the typed data manager. | 2 | |||
| TypedDataTrait::setTypedDataManager | public | function | Sets the typed data manager. | 2 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.