.../path/src/Plugin/Field/FieldType/PathFieldItemList.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php b/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php index a98e718..430adec 100644 --- a/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php +++ b/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php @@ -4,6 +4,7 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Field\FieldItemList; +use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Session\AccountInterface; /** @@ -72,4 +73,12 @@ protected function ensureLoaded() { } } + /** + * {@inheritdoc} + */ + public function equals(FieldItemListInterface $list_to_compare) { + $this->ensureLoaded(); + return parent::equals($list_to_compare); + } + }