public function Webform::isOpening in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::isOpening()
Determines if the webform is currently closed but scheduled to open.
Return value
bool TRUE if the webform is currently closed but scheduled to open.
Overrides WebformInterface::isOpening
File
- src/
Entity/ Webform.php, line 684
Class
- Webform
- Defines the webform entity.
Namespace
Drupal\webform\EntityCode
public function isOpening() {
return $this
->isScheduled() && ($this->open && strtotime($this->open) > time()) ? TRUE : FALSE;
}