You are here

private function PluginHelperTrait::contextHandler in Layout Builder Restrictions 8.2

Gets the context handler.

Return value

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

File

src/Traits/PluginHelperTrait.php, line 367

Class

PluginHelperTrait
Methods to help Layout Builder Restrictions plugins.

Namespace

Drupal\layout_builder_restrictions\Traits

Code

private function contextHandler() {
  return $this->contextHandler ?? \Drupal::service('context.handler');
}