diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileItem.php b/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileItem.php index 619d101..2b50e40 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileItem.php +++ b/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileItem.php @@ -7,9 +7,9 @@ namespace Drupal\file\Plugin\field\field_type; +use Drupal\Core\Annotation\Translation; use Drupal\Core\Entity\Annotation\FieldType; use Drupal\Core\Entity\Plugin\DataType\EntityReferenceItem; -use Drupal\Core\Annotation\Translation; use Drupal\field\FieldInterface; use Drupal\field\Plugin\Type\FieldType\ConfigFieldItemInterface; diff --git a/core/modules/image/lib/Drupal/image/Plugin/field/field_type/ImageItem.php b/core/modules/image/lib/Drupal/image/Plugin/field/field_type/ImageItem.php index c09e006..8cec182 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/field/field_type/ImageItem.php +++ b/core/modules/image/lib/Drupal/image/Plugin/field/field_type/ImageItem.php @@ -7,8 +7,8 @@ namespace Drupal\image\Plugin\field\field_type; -use Drupal\Core\Entity\Annotation\FieldType; use Drupal\Core\Annotation\Translation; +use Drupal\Core\Entity\Annotation\FieldType; use Drupal\field\FieldInterface; use Drupal\file\Plugin\field\field_type\FileItem; @@ -141,7 +141,7 @@ public function getPropertyDefinitions() { */ public function settingsForm(array $form, array &$form_state, $has_data) { $element = array(); - $settings = $this->getFieldSettings(); + $settings = $this->getFieldDefinition()->getField()->getFieldSettings(); $scheme_options = array(); foreach (file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $stream_wrapper) { @@ -307,34 +307,6 @@ public function preSave() { } /** - * {@inheritdoc} - */ - public function insert() { - parent::insert(); - } - - /** - * {@inheritdoc} - */ - public function delete() { - parent::delete(); - } - - /** - * {@inheritdoc} - */ - public function deleteRevision() { - parent::deleteRevision(); - } - - /** - * {@inheritdoc} - */ - public function isEmpty() { - return parent::isEmpty(); - } - - /** * Element validate function for resolution fields. */ public function validateResolution($element, &$form_state) {