Provides an interface for variant plugins that are context-aware.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurablePluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Core\Cache\RefinableCacheableDependencyInterface
- interface \Drupal\Core\Display\VariantInterface
- interface \Drupal\Core\Display\ContextAwareVariantInterface
- interface \Drupal\Core\Display\VariantInterface
File
- core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php, line 8
Namespace
Drupal\Core\Display
Members
| Name | Modifiers | Type | Description |
|---|---|---|---|
| CacheableDependencyInterface::getCacheContexts | public | function | The cache contexts associated with this object. |
| CacheableDependencyInterface::getCacheMaxAge | public | function | The maximum age for which this object may be cached. |
| CacheableDependencyInterface::getCacheTags | public | function | The cache tags associated with this object. |
| ConfigurablePluginInterface::defaultConfiguration | public | function | Gets default configuration for this plugin. |
| ConfigurablePluginInterface::getConfiguration | public | function | Gets this plugin's configuration. |
| ConfigurablePluginInterface::setConfiguration | public | function | Sets the configuration for this plugin instance. |
| ContextAwareVariantInterface::getContexts | public | function | Gets the values for all defined contexts. |
| ContextAwareVariantInterface::setContexts | public | function | Sets the context values for this display variant. |
| DependentPluginInterface::calculateDependencies | public | function | Calculates dependencies for the configured plugin. |
| PluginFormInterface::buildConfigurationForm | public | function | Form constructor. |
| PluginFormInterface::submitConfigurationForm | public | function | Form submission handler. |
| PluginFormInterface::validateConfigurationForm | public | function | Form validation handler. |
| PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. |
| PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. |
| RefinableCacheableDependencyInterface::addCacheableDependency | public | function | Adds a dependency on an object: merges its cacheability metadata. |
| RefinableCacheableDependencyInterface::addCacheContexts | public | function | Adds cache contexts. |
| RefinableCacheableDependencyInterface::addCacheTags | public | function | Adds cache tags. |
| RefinableCacheableDependencyInterface::mergeCacheMaxAge | public | function | Merges the maximum age (in seconds) with the existing maximum age. |
| VariantInterface::access | public | function | Determines if this display variant is accessible. |
| VariantInterface::adminLabel | public | function | Returns the admin-facing display variant label. |
| VariantInterface::build | public | function | Builds and returns the renderable array for the display variant. |
| VariantInterface::getWeight | public | function | Returns the weight of the display variant. |
| VariantInterface::id | public | function | Returns the unique ID for the display variant. |
| VariantInterface::label | public | function | Returns the user-facing display variant label. |
| VariantInterface::setWeight | public | function | Sets the weight of the display variant. |
Please login to continue.