public function EncryptionProfile::getEncryptionMethod in Encrypt 8.3
Gets the encryption method configuration plugin.
Return value
\Drupal\encrypt\EncryptionMethodInterface The used EncryptionMethod plugin.
Overrides EncryptionProfileInterface::getEncryptionMethod
1 call to EncryptionProfile::getEncryptionMethod()
- EncryptionProfile::validate in src/
Entity/ EncryptionProfile.php - Validate the EncryptionProfile entity.
File
- src/
Entity/ EncryptionProfile.php, line 144
Class
- EncryptionProfile
- Defines the EncryptionProfile entity.
Namespace
Drupal\encrypt\EntityCode
public function getEncryptionMethod() {
if ($this
->getEncryptionMethodId()) {
return $this
->getPluginCollection()
->get($this
->getEncryptionMethodId());
}
}