You are here

public function VotingApiLoader::__construct in Votingapi Widgets 8

The VotingApiLoader constructor.

Parameters

\Drupal\votingapi_widgets\Plugin\VotingApiWidgetManager $widget_manager: The votingapi_widget widget manager.

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

File

src/VotingApiLoader.php, line 36

Class

VotingApiLoader
Implements lazy loading.

Namespace

Drupal\votingapi_widgets

Code

public function __construct(VotingApiWidgetManager $widget_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->widgetManager = $widget_manager;
  $this->entityTypeManager = $entity_type_manager;
}