You are here

public static function StateManager::getEncryptedFieldStorageDefinition in Field Encryption 3.0.x

Gets the field definition for the blob where we store data.

Return value

\Drupal\Core\Field\BaseFieldDefinition The field definition for the blob where we store data.

2 calls to StateManager::getEncryptedFieldStorageDefinition()
field_encrypt_entity_base_field_info in ./field_encrypt.module
Implements hook_entity_base_field_info().
StateManager::update in src/StateManager.php
Figure out which entity types are encrypted.

File

src/StateManager.php, line 189

Class

StateManager
Manages state for the module.

Namespace

Drupal\field_encrypt

Code

public static function getEncryptedFieldStorageDefinition() {
  return BaseFieldDefinition::create('encrypted_field_storage')
    ->setLabel(new TranslatableMarkup('Encrypted data'))
    ->setDescription(new TranslatableMarkup('Stores data from encrypted fields.'))
    ->setInternal(TRUE)
    ->setTranslatable(TRUE)
    ->setRevisionable(TRUE);
}