Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function removeField(FieldInterface $field)
 {
     if ($this->hasField($field)) {
         $this->fields->removeElement($field);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function removeField(BaseFieldValueInterface $field)
 {
     if ($this->hasField($field)) {
         $this->fields->removeElement($field);
         $field->setSubject(null);
     }
     return $this;
 }