You are here

public function TranslationOperationsField::__construct in Translation Views 8

Constructs a new EntityOperations object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

Overrides EntityOperations::__construct

File

src/Plugin/views/field/TranslationOperationsField.php, line 43

Class

TranslationOperationsField
Renders translation operations links.

Namespace

Drupal\translation_views\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManager $entity_type_manager, LanguageManagerInterface $language_manager, EntityRepositoryInterface $entity_repository, AccountProxyInterface $account) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $language_manager, $entity_repository);
  $this->currentUser = $account;
  $this->entityTypeManager = $entity_type_manager;
  $this->translatorsModuleExists = \Drupal::moduleHandler()
    ->moduleExists('translators_content');
}