public function WebformInterface::isDefaultRevision in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::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.
See also
\Drupal\Core\Entity\RevisionableInterface::isDefaultRevision()
1 method overrides WebformInterface::isDefaultRevision()
- Webform::isDefaultRevision in src/
Entity/ Webform.php - Required to allow webform which are config entities to have an EntityViewBuilder.
File
- src/
WebformInterface.php, line 1145
Class
- WebformInterface
- Provides an interface defining a webform entity.
Namespace
Drupal\webformCode
public function isDefaultRevision();