public function StateManager::onFieldEncryptSettingsCacheChange in Field Encryption 3.0.x
Reacts to field_encrypt.settings:make_entities_uncacheable changes.
Return value
static
File
- src/
StateManager.php, line 125
Class
- StateManager
- Manages state for the module.
Namespace
Drupal\field_encryptCode
public function onFieldEncryptSettingsCacheChange() {
$this->entityTypeManager
->clearCachedDefinitions();
$this
->setEntityTypeCacheInformation($this->state
->get('field_encrypt.entity_types', []));
return $this;
}