From 893e3799a9e919e9938ccd2e7e4fd99eabb061af Mon Sep 17 00:00:00 2001 From: effulgentsia Date: Tue, 29 Jun 2021 16:25:07 -0700 Subject: [PATCH] =?UTF-8?q?Issue=20#2226811=20by=20mohit=5Faghera,=20catch?= =?UTF-8?q?,=20D=C3=A9sir=C3=A9,=20guilhermevp:=20FieldItemBase=20type=20h?= =?UTF-8?q?ints=20DataDefinitionInterface=20but=20requires=20ComplexDataDe?= =?UTF-8?q?finitionInterface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Drupal/Core/Field/FieldItemBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Field/FieldItemBase.php b/core/lib/Drupal/Core/Field/FieldItemBase.php index a6e4092a8588..399b506edec7 100644 --- a/core/lib/Drupal/Core/Field/FieldItemBase.php +++ b/core/lib/Drupal/Core/Field/FieldItemBase.php @@ -4,7 +4,7 @@ namespace Drupal\Core\Field; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\TypedData\DataDefinitionInterface; +use Drupal\Core\TypedData\ComplexDataDefinitionInterface; use Drupal\Core\TypedData\Plugin\DataType\Map; use Drupal\Core\TypedData\TypedDataInterface; @@ -43,7 +43,7 @@ abstract class FieldItemBase extends Map implements FieldItemInterface { /** * {@inheritdoc} */ - public function __construct(DataDefinitionInterface $definition, $name = NULL, TypedDataInterface $parent = NULL) { + public function __construct(ComplexDataDefinitionInterface $definition, $name = NULL, TypedDataInterface $parent = NULL) { parent::__construct($definition, $name, $parent); // Initialize computed properties by default, such that they get cloned // with the whole item.