You are here

public function PrintLink::__construct in Entity Print 8.2

Constructs a LinkBase object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.

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

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

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

Overrides LinkBase::__construct

File

modules/entity_print_views/src/Plugin/views/field/PrintLink.php, line 32

Class

PrintLink
Field handler to present print links for an entity.

Namespace

Drupal\entity_print_views\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccessManagerInterface $access_manager, ExportTypeManagerInterface $exportTypeManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $access_manager);
  $this->exportTypeManager = $exportTypeManager;
}