EntityForm::setOperation

public EntityForm::setOperation($operation)

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 61

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

1
2
3
4
5
6
7
public function setOperation($operation) {
  // If NULL is passed, do not overwrite the operation.
  if ($operation) {
    $this->operation = $operation;
  }
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.