public function ContextAwarePluginInterface::getContextDefinition in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Plugin/ContextAwarePluginInterface.php \Drupal\Core\Plugin\ContextAwarePluginInterface::getContextDefinition()
- 8 core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextDefinition()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/ContextAwarePluginInterface.php \Drupal\Core\Plugin\ContextAwarePluginInterface::getContextDefinition()
Gets a specific context definition of the plugin.
Parameters
string $name: The name of the context in the plugin definition.
Return value
\Drupal\Core\Plugin\Context\ContextDefinitionInterface. The definition against which the context value must validate.
Throws
\Drupal\Component\Plugin\Exception\PluginException If the requested context is not defined.
Overrides ContextAwarePluginInterface::getContextDefinition
File
- core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginInterface.php, line 40 - Contains \Drupal\Core\Plugin\ContextAwarePluginInterface.
Class
- ContextAwarePluginInterface
- An override of ContextAwarePluginInterface for documentation purposes.
Namespace
Drupal\Core\PluginCode
public function getContextDefinition($name);