public function EncryptionProfile::setEncryptionMethod in Encrypt 8.3
Sets the encryption method to use.
Parameters
\Drupal\encrypt\EncryptionMethodInterface $encryption_method: The encryption method to use on this encryption profile.
Overrides EncryptionProfileInterface::setEncryptionMethod
File
- src/
Entity/ EncryptionProfile.php, line 160
Class
- EncryptionProfile
- Defines the EncryptionProfile entity.
Namespace
Drupal\encrypt\EntityCode
public function setEncryptionMethod(EncryptionMethodInterface $encryption_method) {
$this->encryption_method = $encryption_method
->getPluginId();
$this
->getPluginCollection()
->addInstanceID($encryption_method
->getPluginId());
}