function EntityForm::getEntity

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::getEntity()
  2. 10 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::getEntity()
  3. 11.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::getEntity()

Overrides EntityFormInterface::getEntity

8 calls to EntityForm::getEntity()
AccountForm::submitForm in core/modules/user/src/AccountForm.php
BundleEntityFormBase::protectBundleIdElement in core/lib/Drupal/Core/Entity/BundleEntityFormBase.php
Protects the bundle entity's ID property's form element against changes.
WorkflowStateAddForm::form in core/modules/workflows/src/Form/WorkflowStateAddForm.php
WorkflowStateEditForm::form in core/modules/workflows/src/Form/WorkflowStateEditForm.php
WorkflowTransitionAddForm::form in core/modules/workflows/src/Form/WorkflowTransitionAddForm.php

... See full list

File

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

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.