Overrides TypedData::__construct().
Overrides TypedData::__construct
public function __construct(array $definition, $name = NULL, TypedDataInterface $parent = NULL) {
parent::__construct($definition, $name, $parent);
// Always initialize one empty item as most times a value for at least one
// item will be present. That way prototypes created by
// \Drupal\Core\TypedData\TypedDataManager::getPropertyInstance() will
// already have this field item ready for use after cloning.
$this->list[0] = $this
->createItem(0);
}