public function EntityForm::setOperation in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::setOperation()
- 9 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::setOperation()
Sets the operation for this form.
Parameters
string $operation: The name of the current operation.
Return value
$this
Overrides EntityFormInterface::setOperation
File
- core/
lib/ Drupal/ Core/ Entity/ EntityForm.php, line 52
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\EntityCode
public function setOperation($operation) {
// If NULL is passed, do not overwrite the operation.
if ($operation) {
$this->operation = $operation;
}
return $this;
}