You are here

protected function EntityExtraFieldContextTrait::getContextHandler in Entity Extra Field 2.0.x

Get the context handler service.

Return value

\Drupal\Core\Plugin\Context\ContextHandlerInterface The context handler.

File

src/EntityExtraFieldContextTrait.php, line 56

Class

EntityExtraFieldContextTrait
Define the entity extra field context trait.

Namespace

Drupal\entity_extra_field

Code

protected function getContextHandler() : ContextHandlerInterface {
  return \Drupal::service('context.handler');
}