You are here

public function Webform::isTest in Webform 8.5

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

Determine if the webform is being tested.

Return value

bool TRUE if the webform is being tested.

Overrides WebformInterface::isTest

File

src/Entity/Webform.php, line 568

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function isTest() {
  return $this->operation === 'test' ? TRUE : FALSE;
}