You are here

public function DevelLocalTask::__construct in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 modules/search_api_solr_devel/src/Plugin/Derivative/DevelLocalTask.php \Drupal\search_api_solr_devel\Plugin\Derivative\DevelLocalTask::__construct()
  2. 8.2 search_api_solr_devel/src/Plugin/Derivative/DevelLocalTask.php \Drupal\search_api_solr_devel\Plugin\Derivative\DevelLocalTask::__construct()

Creates an DevelLocalTask object.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

File

modules/search_api_solr_devel/src/Plugin/Derivative/DevelLocalTask.php, line 34

Class

DevelLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\search_api_solr_devel\Plugin\Derivative

Code

public function __construct(EntityTypeManagerInterface $entity_manager, TranslationInterface $string_translation) {
  $this->entityTypeManager = $entity_manager;
  $this->stringTranslation = $string_translation;
}