You are here

public function AJAXactionLink::__construct in Flag 8.4

Build a new link type instance and sets the configuration.

Parameters

array $configuration: The configuration array with which to initialize this plugin.

string $plugin_id: The ID with which to initialize this plugin.

array $plugin_definition: The plugin definition array.

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

\Symfony\Component\HttpFoundation\Request $request: The current request from the request stack.

Overrides ActionLinkTypeBase::__construct

File

src/Plugin/ActionLink/AJAXactionLink.php, line 46

Class

AJAXactionLink
Provides the AJAX link type.

Namespace

Drupal\flag\Plugin\ActionLink

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, AccountInterface $current_user, Request $request) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $current_user);
  $this->request = $request;
}