public function EncryptionProfileManager::getEncryptionProfilesByEncryptionMethod in Encrypt 8.3
Get EncryptionProfile entities by encryption method plugin ID.
Parameters
string $encryption_method_id: The plugin ID of the EncryptionMethod.
Return value
\Drupal\encrypt\EncryptionProfileInterface[] An array of EncryptionProfile entities.
Overrides EncryptionProfileManagerInterface::getEncryptionProfilesByEncryptionMethod
File
- src/
EncryptionProfileManager.php, line 46
Class
- EncryptionProfileManager
- Defines an EncryptionProfile manager.
Namespace
Drupal\encryptCode
public function getEncryptionProfilesByEncryptionMethod($encryption_method_id) {
return $this->entityManager
->getStorage('encryption_profile')
->loadByProperties([
'encryption_method' => $encryption_method_id,
]);
}