diff -u b/dbee.module b/dbee.module --- b/dbee.module +++ b/dbee.module @@ -383,7 +383,7 @@ * Implements hook_entity_update(). */ function dbee_entity_update(EntityInterface $entity) { - if (($entity->getEntityTypeId() == 'key' || ($entity->getEntityTypeId() == 'encryption_profile' && $entity->getOriginalId() == DBEE_ENCRYPT_NAME)) && !empty($entity->dbee_change)) { + if (($entity->getEntityTypeId() == 'key' || ($entity->getEntityTypeId() == 'encryption_profile' && $entity->getOriginalId() == DbeeConstants::DBEE_ENCRYPT_NAME)) && !empty($entity->dbee_change)) { // Batch for decrypting all user email addresses and then // re-encrypting them with the new parameters. \Drupal::moduleHandler()->loadInclude('dbee', 'inc', 'dbee.users'); diff -u b/src/DbeeConstants.php b/src/DbeeConstants.php --- b/src/DbeeConstants.php +++ b/src/DbeeConstants.php @@ -3,7 +3,7 @@ namespace Drupal\dbee; /** - * Block Token Constants. + * DataBase Email Encryption Constants. */ final class DbeeConstants {