public function DevelLocalTask::__construct in Devel 8
Same name and namespace in other branches
- 8.3 src/Plugin/Derivative/DevelLocalTask.php \Drupal\devel\Plugin\Derivative\DevelLocalTask::__construct()
- 8.2 src/Plugin/Derivative/DevelLocalTask.php \Drupal\devel\Plugin\Derivative\DevelLocalTask::__construct()
- 4.x src/Plugin/Derivative/DevelLocalTask.php \Drupal\devel\Plugin\Derivative\DevelLocalTask::__construct()
Creates an DevelLocalTask object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.
File
- src/
Plugin/ Derivative/ DevelLocalTask.php, line 37
Class
- DevelLocalTask
- Provides local task definitions for all entity bundles.
Namespace
Drupal\devel\Plugin\DerivativeCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
}