You are here

public function ParagraphBlocksLabeller::__construct in Paragraph blocks 8.2

Same name and namespace in other branches
  1. 3.x src/ParagraphBlocksLabeller.php \Drupal\paragraph_blocks\ParagraphBlocksLabeller::__construct()

PanelsParagraphsPanelsIpeManager constructor.

Parameters

\Drupal\paragraph_blocks\ParagraphBlocksEntityManager $paragraph_blocks_entity_manager: The Paragraph blocks entity manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The interface for an entity field manager.

File

src/ParagraphBlocksLabeller.php, line 52

Class

ParagraphBlocksLabeller
Labels the paragraph blocks once the entity context is known.

Namespace

Drupal\paragraph_blocks

Code

public function __construct(ParagraphBlocksEntityManager $paragraph_blocks_entity_manager, EntityFieldManagerInterface $entity_field_manager) {
  $this->entity = $paragraph_blocks_entity_manager
    ->getRefererEntity();
  $this->entityFieldManager = $entity_field_manager;
}