public EntityForm::setOperation($operation)
Sets the operation for this form.
string $operation: The name of the current operation.
$this
Overrides EntityFormInterface::setOperation
public function setOperation($operation) {
// If NULL is passed, do not overwrite the operation.
if ($operation) {
$this->operation = $operation;
}
return $this;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityForm.php/function/EntityForm::setOperation/8.1.x