public function FieldToolsLocalTask::__construct in Field tools 8
Creates an FieldToolsLocalTask object.
Parameters
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.
File
- src/
Plugin/ Derivative/ FieldToolsLocalTask.php, line 43
Class
- FieldToolsLocalTask
- Provides local task definitions for all entity bundles.
Namespace
Drupal\field_tools\Plugin\DerivativeCode
public function __construct(RouteProviderInterface $route_provider, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->routeProvider = $route_provider;
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
}