public function ActionLinkTypeBase::__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.
Overrides PluginBase::__construct
1 call to ActionLinkTypeBase::__construct()
- AJAXactionLink::__construct in src/
Plugin/ ActionLink/ AJAXactionLink.php - Build a new link type instance and sets the configuration.
1 method overrides ActionLinkTypeBase::__construct()
- AJAXactionLink::__construct in src/
Plugin/ ActionLink/ AJAXactionLink.php - Build a new link type instance and sets the configuration.
File
- src/
ActionLink/ ActionLinkTypeBase.php, line 49
Class
- ActionLinkTypeBase
- Provides a base class for all link types.
Namespace
Drupal\flag\ActionLinkCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configuration += $this
->defaultConfiguration();
$this->currentUser = $current_user;
}