public function YamlForm::isDefaultRevision in YAML Form 8
Required to allow form which are config entities to have an EntityViewBuilder.
Prevents: Fatal error: Call to undefined method Drupal\yamlform\Entity\YamlForm::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 YamlFormInterface::isDefaultRevision
See also
\Drupal\Core\Entity\RevisionableInterface::isDefaultRevision()
File
- src/
Entity/ YamlForm.php, line 1446
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public function isDefaultRevision() {
return TRUE;
}