You are here

public function Webform::isDefaultRevision in Webform 6.x

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

Required to allow webform which are config entities to have an EntityViewBuilder.

Prevents: Fatal error: Call to undefined method Drupal\webform\Entity\Webform::isDefaultRevision() in /private/var/www/sites/d8_dev/core/lib/Drupal/Core/Entity/EntityViewBuilder.php on line 169

Return value

bool Always return TRUE since config entities are not revisionable.

Overrides WebformInterface::isDefaultRevision

See also

\Drupal\Core\Entity\RevisionableInterface::isDefaultRevision()

File

src/Entity/Webform.php, line 3090

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function isDefaultRevision() {
  return TRUE;
}