You are here

protected function EncryptedFieldStorageItem::loadEncryptionProfile in Field Encryption 3.0.x

Loads the encryption profile config entity.

Return value

\Drupal\encrypt\EncryptionProfileInterface The EncryptionProfile entity.

2 calls to EncryptedFieldStorageItem::loadEncryptionProfile()
EncryptedFieldStorageItem::decrypt in src/Plugin/Field/FieldType/EncryptedFieldStorageItem.php
Decrypts the field item.
EncryptedFieldStorageItem::encrypt in src/Plugin/Field/FieldType/EncryptedFieldStorageItem.php
Encrypts the field item.

File

src/Plugin/Field/FieldType/EncryptedFieldStorageItem.php, line 115

Class

EncryptedFieldStorageItem
Plugin implementation of the 'encrypted_field_storage' field type.

Namespace

Drupal\field_encrypt\Plugin\Field\FieldType

Code

protected function loadEncryptionProfile($encryption_profile) {
  return \Drupal::service('encrypt.encryption_profile.manager')
    ->getEncryptionProfile($encryption_profile);
}