public function BehaviorForm::__construct in Synonyms 2.0.x
BehaviorForm constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
\Drupal\synonyms\SynonymsService\BehaviorService $behavior_service: The behavior service.
Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container.
Overrides ConfigFormBase::__construct
File
- src/
Form/ BehaviorForm.php, line 108
Class
- BehaviorForm
- The behavior form for given entity type.
Namespace
Drupal\synonyms\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, BehaviorService $behavior_service, RendererInterface $renderer, ContainerInterface $container) {
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->behaviorService = $behavior_service;
$this->renderer = $renderer;
$this->container = $container;
$this->entityType = $this
->getRequest()
->get('synonyms_entity_type')
->id();
$this->bundle = $this
->getRequest()
->get('bundle');
}