interface TestContextAwareBlockInterface
Hierarchy
- interface \Drupal\Core\Block\BlockPluginInterface extends \Drupal\Component\Plugin\ConfigurableInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Component\Plugin\ConfigurablePluginInterface, \Drupal\Core\Plugin\PluginFormInterface, \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface; interface \Drupal\Core\Plugin\ContextAwarePluginInterface extends \Drupal\Component\Plugin\ContextAwarePluginInterface
- interface \Drupal\Tests\block\Unit\TestContextAwareBlockInterface extends \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\ContextAwarePluginInterface
Expanded class hierarchy of TestContextAwareBlockInterface
All classes that implement TestContextAwareBlockInterface
File
-
core/
modules/ block/ tests/ src/ Unit/ BlockRepositoryTest.php, line 195
Namespace
Drupal\Tests\block\UnitView source
interface TestContextAwareBlockInterface extends BlockPluginInterface, ContextAwarePluginInterface {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
BlockPluginInterface::access | public | function | Indicates whether the block should be shown. | ||
BlockPluginInterface::blockForm | public | function | Returns the configuration form elements specific to this block plugin. | ||
BlockPluginInterface::blockSubmit | public | function | Adds block type-specific submission handling for the block form. | ||
BlockPluginInterface::blockValidate | public | function | Adds block type-specific validation for the block form. | ||
BlockPluginInterface::BLOCK_LABEL_VISIBLE | constant | Indicates the block label (title) should be displayed to end users. | |||
BlockPluginInterface::build | public | function | Builds and returns the renderable array for this block plugin. | 47 | |
BlockPluginInterface::getMachineNameSuggestion | public | function | Suggests a machine name to identify an instance of this block. | ||
BlockPluginInterface::label | public | function | Returns the user-facing block label. | ||
BlockPluginInterface::setConfigurationValue | public | function | Sets a particular value in the block settings. | ||
CacheableDependencyInterface::getCacheContexts | public | function | The cache contexts associated with this object. | 34 | |
CacheableDependencyInterface::getCacheMaxAge | public | function | The maximum age for which this object may be cached. | 34 | |
CacheableDependencyInterface::getCacheTags | public | function | The cache tags associated with this object. | 27 | |
ConfigurableInterface::defaultConfiguration | public | function | Gets default configuration for this plugin. | 13 | |
ConfigurableInterface::getConfiguration | public | function | Gets this plugin's configuration. | 14 | |
ConfigurableInterface::setConfiguration | public | function | Sets the configuration for this plugin instance. | 14 | |
ContextAwarePluginInterface::getContext | public | function | Gets a defined context. | 1 | |
ContextAwarePluginInterface::getContextDefinition | public | function | Gets a specific context definition of the plugin. | Overrides ContextAwarePluginInterface::getContextDefinition | |
ContextAwarePluginInterface::getContextDefinitions | public | function | Gets the context definitions of the plugin. | Overrides ContextAwarePluginInterface::getContextDefinitions | |
ContextAwarePluginInterface::getContextMapping | public | function | Gets a mapping of the expected assignment names to their context names. | 1 | |
ContextAwarePluginInterface::getContexts | public | function | Gets the defined contexts. | 1 | |
ContextAwarePluginInterface::getContextValue | public | function | Gets the value for a defined context. | 1 | |
ContextAwarePluginInterface::getContextValues | public | function | Gets the values for all defined contexts. | 1 | |
ContextAwarePluginInterface::setContext | public | function | Set a context on this plugin. | 1 | |
ContextAwarePluginInterface::setContextMapping | public | function | Sets a mapping of the expected assignment names to their context names. | 1 | |
ContextAwarePluginInterface::setContextValue | public | function | Sets the value for a defined context. | 1 | |
ContextAwarePluginInterface::validateContexts | public | function | Validates the set values for the defined contexts. | 1 | |
DependentPluginInterface::calculateDependencies | public | function | Calculates dependencies for the configured plugin. | 21 | |
DerivativeInspectionInterface::getBaseId | public | function | Gets the base_plugin_id of the plugin instance. | 1 | |
DerivativeInspectionInterface::getDerivativeId | public | function | Gets the derivative_id of the plugin instance. | 1 | |
PluginFormInterface::buildConfigurationForm | public | function | Form constructor. | 36 | |
PluginFormInterface::submitConfigurationForm | public | function | Form submission handler. | 32 | |
PluginFormInterface::validateConfigurationForm | public | function | Form validation handler. | 18 | |
PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | 4 | |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. | 2 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.