You are here

public function EntityEmbedBuilder::__construct in Entity Embed 8

Constructs a EntityEmbedBuilder object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayManager $display_manager: The entity embed display plugin manager.

File

src/EntityEmbedBuilder.php, line 39

Class

EntityEmbedBuilder
Builds embedded entities.

Namespace

Drupal\entity_embed

Code

public function __construct(ModuleHandlerInterface $module_handler, EntityEmbedDisplayManager $display_manager) {
  $this->moduleHandler = $module_handler;
  $this->displayPluginManager = $display_manager;
}