function ContextAwarePluginInterface::getContextMapping
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextMapping()
- 10 core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextMapping()
- 11.x core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextMapping()
Gets a mapping of the expected assignment names to their context names.
Return value
array A mapping of the expected assignment names to their context names. For example, if one of the $contexts is named 'user.current_user', but the plugin expects a context named 'user', then this map would contain 'user' => 'user.current_user'.
File
-
core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginInterface.php, line 132
Class
- ContextAwarePluginInterface
- Interface for defining context aware plugins.
Namespace
Drupal\Component\PluginCode
public function getContextMapping();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.