You are here

public function WebformElementViewsAbstract::__construct in Webform Views Integration 8.5

WebformElementViewsAbstract constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service

\Drupal\webform\Plugin\WebformElementManagerInterface $webform_element_manager: Webform element manager service

2 calls to WebformElementViewsAbstract::__construct()
WebformEntityReferenceViews::__construct in src/WebformElementViews/WebformEntityReferenceViews.php
WebformEntityReferenceViews constructor.
WebformManagedFileViews::__construct in src/WebformElementViews/WebformManagedFileViews.php
WebformManagedFileViews constructor.
2 methods override WebformElementViewsAbstract::__construct()
WebformEntityReferenceViews::__construct in src/WebformElementViews/WebformEntityReferenceViews.php
WebformEntityReferenceViews constructor.
WebformManagedFileViews::__construct in src/WebformElementViews/WebformManagedFileViews.php
WebformManagedFileViews constructor.

File

src/WebformElementViews/WebformElementViewsAbstract.php, line 52

Class

WebformElementViewsAbstract
Abstract implementation of webform element views handler.

Namespace

Drupal\webform_views\WebformElementViews

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, WebformElementManagerInterface $webform_element_manager) {
  $this->entityType = $entity_type_manager
    ->getDefinition('webform_submission');
  $this->webformElementManager = $webform_element_manager;
}