public function Context::getTypedContext

Gets the context value as typed data object.

parent::getContextValue() does not do all the processing required to return plain value of a TypedData object. This class overrides that method to return the appropriate values from TypedData objects, but the object itself can be useful as well, so this method is provided to allow for access to the TypedData object. Since parent::getContextValue() already does all the processing we need, we simply proxy to it here.

Return value

\Drupal\Core\TypedData\TypedDataInterface

1 call to Context::getTypedContext()
Context::validate in drupal/core/lib/Drupal/Core/Plugin/Context/Context.php
Overrides \Drupal\Component\Plugin\Context\Context::getConstraints().

File

drupal/core/lib/Drupal/Core/Plugin/Context/Context.php, line 69
Contains \Drupal\Core\Plugin\Context\Context.

Class

Context
A Drupal specific context wrapper class.

Namespace

Drupal\Core\Plugin\Context

Code

public function getTypedContext() {
  return parent::getContextValue();
}