class AutomaticContext in Chaos Tool Suite (ctools) 8.3
Provides a class to indicate that this context is always present.
@internal
@todo Move into core.
Hierarchy
- class \Drupal\Component\Plugin\Context\Context implements ContextInterface
- class \Drupal\Core\Plugin\Context\Context implements ContextInterface uses DependencySerializationTrait, TypedDataTrait
- class \Drupal\ctools\Context\AutomaticContext
- class \Drupal\Core\Plugin\Context\Context implements ContextInterface uses DependencySerializationTrait, TypedDataTrait
Expanded class hierarchy of AutomaticContext
File
- src/
Context/ AutomaticContext.php, line 14
Namespace
Drupal\ctools\ContextView source
class AutomaticContext extends Context {
/**
* Returns TRUE if this context is automatic and always available.
*
* @return bool
*/
public function isAutomatic() {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AutomaticContext:: |
public | function | Returns TRUE if this context is automatic and always available. | |
Context:: |
protected | property | The cacheability metadata. | |
Context:: |
protected | property | The data associated with the context. | |
Context:: |
protected | property |
The definition to which a context must conform. Overrides Context:: |
|
Context:: |
protected | property | The value of the context. | |
Context:: |
public | function |
Adds a dependency on an object: merges its cacheability metadata. Overrides ContextInterface:: |
|
Context:: |
public static | function |
Creates a new context with a different value. Overrides ContextInterface:: |
|
Context:: |
public | function |
The cache contexts associated with this object. Overrides CacheableDependencyInterface:: |
|
Context:: |
public | function |
The maximum age for which this object may be cached. Overrides CacheableDependencyInterface:: |
|
Context:: |
public | function |
The cache tags associated with this object. Overrides CacheableDependencyInterface:: |
|
Context:: |
public | function |
Gets a list of validation constraints. Overrides Context:: |
|
Context:: |
public | function |
Gets the context value as typed data object. Overrides ContextInterface:: |
|
Context:: |
public | function |
Gets the provided definition that the context must conform to. Overrides Context:: |
|
Context:: |
public | function |
Gets the context value. Overrides Context:: |
|
Context:: |
public | function |
Returns whether the context has a value. Overrides Context:: |
|
Context:: |
protected | function | Sets the context value. | |
Context:: |
public | function |
Validates the set context value. Overrides Context:: |
|
Context:: |
public | function |
Create a context object. Overrides Context:: |
|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
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 |