EntityForm::getEntity

public EntityForm::getEntity()

Gets the form entity.

The form entity which has been used for populating form element defaults.

Return value

\Drupal\Core\Entity\EntityInterface The current form entity.

Overrides EntityFormInterface::getEntity

File

core/lib/Drupal/Core/Entity/EntityForm.php, line 336

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function getEntity() {
  return $this->entity;
}
doc_Drupal
2016-10-29 09:06:07
Comments
Leave a Comment

Please login to continue.