function EntityForm::getEntity

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::getEntity()
2 calls to EntityForm::getEntity()
WorkflowTransitionEditForm::form in core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
Gets the actual form array to be built.
WorkflowTransitionEditForm::validateForm in core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
Form validation handler.

File

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

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function getEntity() {
  return $this->entity;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.