You are here

public function EntityForm::getOperation in Drupal 8

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

Gets the operation identifying the form.

Return value

string The name of the operation.

Overrides EntityFormInterface::getOperation

2 calls to EntityForm::getOperation()
ContentEntityForm::init in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Initializes the form state and the entity before the first form build.
OverridesEntityForm::init in core/modules/layout_builder/src/Form/OverridesEntityForm.php
Initializes the form state and the entity before the first form build.

File

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

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function getOperation() {
  return $this->operation;
}