You are here

public function Webform::isScheduled in Webform 6.x

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

Returns the webform scheduled status indicator.

Return value

bool TRUE if the webform is scheduled to open/close to new submissions.

Overrides WebformInterface::isScheduled

2 calls to Webform::isScheduled()
Webform::getCacheMaxAge in src/Entity/Webform.php
The maximum age for which this object may be cached.
Webform::isOpening in src/Entity/Webform.php
Determines if the webform is currently closed but scheduled to open.

File

src/Entity/Webform.php, line 677

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function isScheduled() {
  return $this->status === WebformInterface::STATUS_SCHEDULED;
}