You are here

public function Webform::hasConditions in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 828

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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