function EntityFormInterface::setOperation

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setOperation()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setOperation()
  3. 11.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setOperation()

Sets the operation for this form.

Parameters

string $operation: The name of the current operation.

Return value

$this

3 methods override EntityFormInterface::setOperation()
EntityForm::setOperation in core/lib/Drupal/Core/Entity/EntityForm.php
Sets the operation for this form.
RevisionDeleteForm::setOperation in core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php
Sets the operation for this form.
RevisionRevertForm::setOperation in core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php
Sets the operation for this form.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 24

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function setOperation($operation);

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