public function EncryptedFieldValueManagerInterface::createEncryptedFieldValue in Field Encryption 8.2
Create an encrypted field value, or update an existing one.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to process.
string $field_name: The field name to save.
int $delta: The field delta to save.
string $property: The field property to save.
string $encrypted_value: The encrypted value to save.
Return value
\Drupal\field_encrypt\Entity\EncryptedFieldValueInterface The created EncryptedFieldValue entity.
1 method overrides EncryptedFieldValueManagerInterface::createEncryptedFieldValue()
- EncryptedFieldValueManager::createEncryptedFieldValue in src/
EncryptedFieldValueManager.php - Create an encrypted field value, or update an existing one.
File
- src/
EncryptedFieldValueManagerInterface.php, line 31
Class
- EncryptedFieldValueManagerInterface
- Interface EncryptedFieldValueManagerInterface.
Namespace
Drupal\field_encryptCode
public function createEncryptedFieldValue(ContentEntityInterface $entity, $field_name, $delta, $property, $encrypted_value);