You are here

public function Webform::isClosed in Webform 8.5

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

Returns the webform closed status indicator.

Return value

bool TRUE if the webform is closed to new submissions.

Overrides WebformInterface::isClosed

File

src/Entity/Webform.php, line 670

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function isClosed() {
  return !$this
    ->isOpen();
}