You are here

public function Webform::hasActions in Webform 6.x

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

Determine if the webform has any custom actions (aka submit buttons).

Return value

bool TRUE if the webform has any custom actions (aka submit buttons).

Overrides WebformInterface::hasActions

1 call to Webform::hasActions()
Webform::setElementProperties in src/Entity/Webform.php
Set element properties.

File

src/Entity/Webform.php, line 845

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function hasActions() {
  return $this
    ->getNumberOfActions() ? TRUE : FALSE;
}