You are here

public function LockrEncryptionKeyType::__construct in Lockr 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/KeyType/LockrEncryptionKeyType.php \Drupal\lockr\Plugin\KeyType\LockrEncryptionKeyType::__construct()
  2. 4.x src/Plugin/KeyType/LockrEncryptionKeyType.php \Drupal\lockr\Plugin\KeyType\LockrEncryptionKeyType::__construct()

Constructs a new LockrEncryptionKeyType.

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.

Lockr $lockr: The Lockr library client.

Overrides KeyPluginBase::__construct

File

src/Plugin/KeyType/LockrEncryptionKeyType.php, line 47

Class

LockrEncryptionKeyType
Defines a key type for encryption that generates keys with Lockr.

Namespace

Drupal\lockr\Plugin\KeyType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Lockr $lockr) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->lockr = $lockr;
}