diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php index 204e7e2..28fc178 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php @@ -250,13 +250,11 @@ protected function doSave($id, EntityInterface $entity) { * * @param array $data * Raw configuration data being saved. - * @param \Drupal\Core\Entity\EntityInterface $entity - * Entity being saved. * * @return array * Data to save with any modifications necessary for storage performed. */ - protected function preSaveData(array $data, EntityInterface $entity) { + protected function preSaveData(array $data) { return $data; } diff --git a/core/modules/field/src/FieldConfigStorage.php b/core/modules/field/src/FieldConfigStorage.php index 77d0daa..18216dc 100644 --- a/core/modules/field/src/FieldConfigStorage.php +++ b/core/modules/field/src/FieldConfigStorage.php @@ -172,7 +172,7 @@ protected function postLoadData(array $data) { /** * {@inheritdoc} */ - protected function preSaveData(array $data, EntityInterface $entity) { + protected function preSaveData(array $data) { // @todo Makes too much assumptions but it needs to. $type_definition = \Drupal::typedDataManager() ->getDefinition('field_item:' . $data['type']);