/** * {@inheritdoc} */ public function addField(FieldInterface $field) { if (!$this->hasField($field)) { $this->fields->add($field); } return $this; }
/** * {@inheritdoc} */ public function addField(BaseFieldValueInterface $field) { if (!$this->hasField($field)) { $field->setSubject($this); $this->fields->add($field); } return $this; }