public function LoginLogoutMenuLink::__construct in SAML Authentication 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\samlauth\Plugin\Menu\LoginLogoutMenuLink::__construct()
- 8.2 src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\samlauth\Plugin\Menu\LoginLogoutMenuLink::__construct()
Constructs a new LoginLogoutMenuLink.
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\Menu\StaticMenuLinkOverridesInterface $static_override: The static override storage.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
Overrides LoginLogoutMenuLink::__construct
File
- src/
Plugin/ Menu/ LoginLogoutMenuLink.php, line 39
Class
- LoginLogoutMenuLink
- A menu link that shows "Log in" or "Log out" as appropriate.
Namespace
Drupal\samlauth\Plugin\MenuCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, StaticMenuLinkOverridesInterface $static_override, AccountInterface $current_user, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $static_override, $current_user);
$this->config = $config_factory
->get('samlauth.authentication');
}