class InheritedContextDefinition in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php \Drupal\Tests\Core\Plugin\Fixtures\InheritedContextDefinition
Inherited class used for testing.
Hierarchy
- class \Drupal\Core\Plugin\Context\ContextDefinition implements ContextDefinitionInterface uses DependencySerializationTrait, TypedDataTrait
- class \Drupal\Tests\Core\Plugin\Fixtures\InheritedContextDefinition
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextDefinition:: |
protected | property | An array of constraints. | |
ContextDefinition:: |
protected | property | The data type of the data. | |
ContextDefinition:: |
protected | property | The default value. | |
ContextDefinition:: |
protected | property | The human-readable description. | |
ContextDefinition:: |
protected | property | Whether the data is multi-valued, i.e. a list of data items. | |
ContextDefinition:: |
protected | property | Determines whether a data value is required. | |
ContextDefinition:: |
protected | property | The human-readable label. | |
ContextDefinition:: |
public | function |
Adds a validation constraint. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public static | function | Creates a new context definition. | |
ContextDefinition:: |
protected | function | Checks if this definition's data type matches that of the given context. | |
ContextDefinition:: |
public | function |
Gets a validation constraint. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
protected | function | Extracts an array of constraints for a context definition object. | 1 |
ContextDefinition:: |
public | function |
Gets an array of validation constraints. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Returns the data definition of the defined context. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Gets the data type needed by the context. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Gets the default value for this context definition. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Gets a human readable description. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Gets a human readable label. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
protected | function | Returns typed data objects representing this context definition. | 1 |
ContextDefinition:: |
public | function |
Determines whether the data is multi-valued, i.e. a list of data items. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Determines whether the context is required. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Determines if this definition is satisfied by a context object. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets the array of validation constraints. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets the data type needed by the context. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets the default data value. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets the human readable description. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets the human readable label. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets whether the data is multi-valued. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function |
Sets whether the data is required. Overrides ContextDefinitionInterface:: |
|
ContextDefinition:: |
public | function | Constructs a new context definition object. | 1 |
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
public | function | Aliased as: traitSleep | 2 |
DependencySerializationTrait:: |
public | function | 2 | |
TypedDataTrait:: |
protected | property | The typed data manager used for creating the data types. | |
TypedDataTrait:: |
public | function | Gets the typed data manager. | 2 |
TypedDataTrait:: |
public | function | Sets the typed data manager. | 2 |