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