Acts on an entity before the presave hook is invoked.
Used before the entity is saved and before invoking the presave hook.
Overrides ConfigStorageController::preSave
protected function preSave(EntityInterface $entity) {
parent::preSave($entity);
$entity
->set('settings', $entity
->getPlugin()
->getConfig());
}