public function EntityFormController::setOperation

Sets the operation for this form.

Parameters

string $operation: The name of the current operation.

1 call to EntityFormController::setOperation()
EntityFormController::__construct in drupal/core/lib/Drupal/Core/Entity/EntityFormController.php
Constructs an EntityFormController object.

File

drupal/core/lib/Drupal/Core/Entity/EntityFormController.php, line 52
Contains \Drupal\Core\Entity\EntityFormController.

Class

EntityFormController
Base class for entity form controllers.

Namespace

Drupal\Core\Entity

Code

public function setOperation($operation) {

  // If NULL is passed, do not overwrite the operation.
  if ($operation) {
    $this->operation = $operation;
  }
}