You are here

public function EmbedButtonForm::__construct in Embed 8

Constructs a new EmbedButtonForm.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\embed\EmbedType\EmbedTypeManager $embed_type_manager: The embed type plugin manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Form/EmbedButtonForm.php, line 46

Class

EmbedButtonForm
Form controller for embed button forms.

Namespace

Drupal\embed\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EmbedTypeManager $embed_type_manager, ConfigFactoryInterface $config_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->embedTypeManager = $embed_type_manager;
  $this->configFactory = $config_factory;
}