You are here

public function ContextAwarePluginInterface::getContextMapping in Service Container 7.2

Same name and namespace in other branches
  1. 7 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

lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 137
Contains \Drupal\Component\Plugin\ContextAwarePluginInterface.

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function getContextMapping();