Gets the defined contexts.
Return value
array
The set context objects.
Throws
\Drupal\Component\Plugin\Exception\PluginException
If contexts are defined but not set.
File
- drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 51
- Contains \Drupal\Component\Plugin\ContextAwarePluginInterface.
Class
- ContextAwarePluginInterface
- Interface for defining context aware plugins.
Namespace
Drupal\Component\Plugin
Code
public function getContexts();