You are here

public function ShareMessageForm::__construct in Share Message 8

Constructs a new ShareMessageForm object.

Parameters

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

\Drupal\sharemessage\SharePluginManager $share_manager: The share manager.

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

File

src/Form/ShareMessageForm.php, line 60

Class

ShareMessageForm
Base form controller for Share Message edit forms.

Namespace

Drupal\sharemessage\Form

Code

public function __construct(ModuleHandlerInterface $module_handler, SharePluginManager $share_manager, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  $this->moduleHandler = $module_handler;
  $this->sharePluginManager = $share_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}