You are here

public function WebformHandlerBase::setConditions in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::setConditions()

Sets the conditions for this webform handler.

Parameters

array $conditions: The conditional logic for this webform handler.

Return value

$this

Overrides WebformHandlerInterface::setConditions

File

src/Plugin/WebformHandlerBase.php, line 326

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

public function setConditions(array $conditions) {
  $this->conditions = $conditions;
  $this->conditionsResultCache = [];
  return $this;
}