interface ContextDefinitionInterface in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php \Drupal\Core\Plugin\Context\ContextDefinitionInterface
- 8 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php \Drupal\Core\Plugin\Context\ContextDefinitionInterface
Interface for context definitions.
Hierarchy
- interface \Drupal\Component\Plugin\Context\ContextDefinitionInterface
- interface \Drupal\Core\Plugin\Context\ContextDefinitionInterface
Expanded class hierarchy of ContextDefinitionInterface
All classes that implement ContextDefinitionInterface
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinitionInterface.php, line 15 - Contains \Drupal\Core\Plugin\Context\ContextDefinitionInterface.
Namespace
Drupal\Core\Plugin\ContextView source
interface ContextDefinitionInterface extends ComponentContextDefinitionInterface {
/**
* Returns the data definition of the defined context.
*
* @return \Drupal\Core\TypedData\DataDefinitionInterface
* The data definition object.
*/
public function getDataDefinition();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextDefinitionInterface:: |
public | function | Adds a validation constraint. | 1 |
ContextDefinitionInterface:: |
public | function | Gets a validation constraint. | 1 |
ContextDefinitionInterface:: |
public | function | Gets an array of validation constraints. | 1 |
ContextDefinitionInterface:: |
public | function | Returns the data definition of the defined context. | 1 |
ContextDefinitionInterface:: |
public | function | Gets the data type needed by the context. | 1 |
ContextDefinitionInterface:: |
public | function | Gets the default value for this context definition. | 1 |
ContextDefinitionInterface:: |
public | function | Gets a human readable description. | 1 |
ContextDefinitionInterface:: |
public | function | Gets a human readable label. | 1 |
ContextDefinitionInterface:: |
public | function | Determines whether the data is multi-valued, i.e. a list of data items. | 1 |
ContextDefinitionInterface:: |
public | function | Determines whether the context is required. | 1 |
ContextDefinitionInterface:: |
public | function | Sets the array of validation constraints. | 1 |
ContextDefinitionInterface:: |
public | function | Sets the data type needed by the context. | 1 |
ContextDefinitionInterface:: |
public | function | Sets the default data value. | 1 |
ContextDefinitionInterface:: |
public | function | Sets the human readable description. | 1 |
ContextDefinitionInterface:: |
public | function | Sets the human readable label. | 1 |
ContextDefinitionInterface:: |
public | function | Sets whether the data is multi-valued. | 1 |
ContextDefinitionInterface:: |
public | function | Sets whether the data is required. | 1 |