You are here

public function Webform::isTemplate in Webform 6.x

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

Returns the webform template indicator.

Return value

bool TRUE if the webform is a template and available for duplication.

Overrides WebformInterface::isTemplate

1 call to Webform::isTemplate()
Webform::preSave in src/Entity/Webform.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Webform.php, line 691

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function isTemplate() {
  return $this->template ? TRUE : FALSE;
}