public function EncryptionProfile::setEncryptionKey in Encrypt 8.3
Sets the encryption key to use.
Parameters
\Drupal\key\Entity\Key $key: The encryption key to use on this encryption profile.
Overrides EncryptionProfileInterface::setEncryptionKey
File
- src/
Entity/ EncryptionProfile.php, line 185
Class
- EncryptionProfile
- Defines the EncryptionProfile entity.
Namespace
Drupal\encrypt\EntityCode
public function setEncryptionKey(Key $key) {
$this->encryption_key_entity = $key;
$this->encryption_key = $key
->id();
}