You are here

public function FieldInheritance::setSourceField in Field Inheritance 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/FieldInheritance.php \Drupal\field_inheritance\Entity\FieldInheritance::setSourceField()

Set the inheritance source field.

The inheritance source field.

Return value

$this

Overrides FieldInheritanceInterface::setSourceField

File

src/Entity/FieldInheritance.php, line 233

Class

FieldInheritance
Defines the Field inheritance entity.

Namespace

Drupal\field_inheritance\Entity

Code

public function setSourceField($source_field) {
  $this->sourceField = $source_field;
  return $this;
}