public function FieldEncryptProcessEntities::encryptEntity in Field Encryption 8.2
Encrypt fields for an entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to encrypt fields on.
Overrides FieldEncryptProcessEntitiesInterface::encryptEntity
File
- src/
FieldEncryptProcessEntities.php, line 93
Class
- FieldEncryptProcessEntities
- Service class to process entities and fields for encryption.
Namespace
Drupal\field_encryptCode
public function encryptEntity(ContentEntityInterface $entity) {
$this
->processEntity($entity, 'encrypt');
}