Drupal\Core\Field\ConfigFieldItemList has this use statement:

use Drupal\Core\Field\Plugin\DataType\FieldInstanceInterface;

and then does a check on it in the constructor, which will never return true:

  public function __construct($definition, $name = NULL, TypedDataInterface $parent = NULL) {
    parent::__construct($definition, $name, $parent);
    // Definition can be the field config or field instance.
    if ($definition instanceof FieldInstanceInterface) {
      $this->instance = $definition;
    }
  }
CommentFileSizeAuthor
#1 2171759.patch766 bytesamateescu

Comments

amateescu’s picture

Status: Active » Needs review
StatusFileSize
new766 bytes

Another easy one :)

yched’s picture

Status: Needs review » Reviewed & tested by the community

Good catch.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

berdir’s picture

amateescu’s picture

Yeah.. I guess I've just gotten used to open issues for most small things I find when working on something else :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.