You are here

public function Webform::isTest in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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;
}