You are here

public function FieldInheritance::sourceField in Field Inheritance 8

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

Get the inheritance source field.

Return value

string The inheritance source field.

Overrides FieldInheritanceInterface::sourceField

File

src/Entity/FieldInheritance.php, line 172

Class

FieldInheritance
Defines the Field inheritance entity.

Namespace

Drupal\field_inheritance\Entity

Code

public function sourceField() {
  return isset($this->sourceField) ? $this->sourceField : NULL;
}