public function SimplesamlphpAuthBlock::__construct in simpleSAMLphp Authentication 8.3
Creates a LocalActionsBlock instance.
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\simplesamlphp_auth\Service\SimplesamlphpAuthManager $simplesaml_auth: The SimpleSAML Authentication helper service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ SimplesamlphpAuthBlock.php, line 63
Class
- SimplesamlphpAuthBlock
- Provides a 'SimpleSAMLphp authentication status' block.
Namespace
Drupal\simplesamlphp_auth\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, SimplesamlphpAuthManager $simplesaml_auth, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->simplesamlAuth = $simplesaml_auth;
$this->config = $config_factory
->get('simplesamlphp_auth.settings');
}