You are here

public function Redirect404Operations::__construct in Redirect 8

Constructor for the redirect operations view field.

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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides HandlerBase::__construct

File

modules/redirect_404/src/Plugin/views/field/Redirect404Operations.php, line 52

Class

Redirect404Operations
Provides a views field for the redirect operation buttons.

Namespace

Drupal\redirect_404\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, AccountInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
  $this->currentUser = $current_user;
}