You are here

public function Webform::hasConditions in Webform 6.x

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

Determine if the webform has conditional logic (i.e. #states).

Return value

bool TRUE if the webform has conditional logic.

Overrides WebformInterface::hasConditions

File

src/Entity/Webform.php, line 829

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function hasConditions() {
  $this
    ->initElements();
  return $this->hasConditions;
}