public function ClientAuthorizationPluginBase::__construct in Entity Share 8.3
Constructs a \Drupal\Component\Plugin\PluginBase object.
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.
Overrides PluginBase::__construct
File
- modules/
entity_share_client/ src/ ClientAuthorization/ ClientAuthorizationPluginBase.php, line 53
Class
- ClientAuthorizationPluginBase
- Base class for Client authorization plugins.
Namespace
Drupal\entity_share_client\ClientAuthorizationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, KeyProvider $keyProvider, KeyValueFactoryInterface $key_value_factory, UuidInterface $uuid, ClientFactory $clientFactory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->keyService = $keyProvider;
$this->keyValueStore = $key_value_factory
->get(ClientAuthorizationInterface::LOCAL_STORAGE_KEY_VALUE_COLLECTION);
$this->uuid = $uuid;
$this->httpClientFactory = $clientFactory;
$this
->setConfiguration($configuration);
}