You are here

public function EntityForm::__construct in Flexiform 8

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.

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

\Drupal\flexiform\FlexiformManager $flexiform_manager: The flexiform manager.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/EntityForm.php, line 92

Class

EntityForm
Provides a block to see an entity form.

Namespace

Drupal\flexiform\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, FormBuilderInterface $form_builder, ClassResolverInterface $class_resolver, TranslationInterface $translation, ModuleHandlerInterface $module_handler, FlexiformManager $flexiform_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_manager;
  $this->formBuilder = $form_builder;
  $this->classResolver = $class_resolver;
  $this->stringTranslation = $translation;
  $this->moduleHandler = $module_handler;
  $this->flexiformManager = $flexiform_manager;
}