Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function addField(FieldInterface $field)
 {
     if (!$this->hasField($field)) {
         $this->fields->add($field);
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function addField(BaseFieldValueInterface $field)
 {
     if (!$this->hasField($field)) {
         $field->setSubject($this);
         $this->fields->add($field);
     }
     return $this;
 }