public function ContextAwarePluginDefinitionTrait::removeContextDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionTrait.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionTrait::removeContextDefinition()
- 9 core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionTrait.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionTrait::removeContextDefinition()
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::removeContextDefinition().
File
- core/
lib/ Drupal/ Component/ Plugin/ Definition/ ContextAwarePluginDefinitionTrait.php, line 55
Class
- ContextAwarePluginDefinitionTrait
- Provides a trait for context-aware object-based plugin definitions.
Namespace
Drupal\Component\Plugin\DefinitionCode
public function removeContextDefinition($name) {
unset($this->contextDefinitions[$name]);
return $this;
}