You are here

public function WebformHandlerBase::setConditions in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 265

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;
}