You are here

public function FieldContextHandler::__construct in Core Context 8

FieldContextHandler constructor.

Parameters

\Drupal\ctools\ContextMapperInterface $context_mapper: The context mapper service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

File

src/FieldContextHandler.php, line 41

Class

FieldContextHandler
Exposes contexts stored on an entity field.

Namespace

Drupal\core_context

Code

public function __construct(ContextMapperInterface $context_mapper, EntityFieldManagerInterface $entity_field_manager) {
  $this->contextMapper = $context_mapper;
  $this->entityFieldManager = $entity_field_manager;
}