You are here

public function Webform::setOperation in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::setOperation()

Sets the webform's current operation .

Parameters

string $operation: The webform's operation.

Return value

$this

Overrides WebformInterface::setOperation

See also

\Drupal\webform\WebformSubmissionForm

File

src/Entity/Webform.php, line 560

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function setOperation($operation) {
  $this->operation = $operation;
  return $this;
}