You are here

public function Webform::toUrl in Webform 6.x

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

Overriding so that URLs pointing to webform default to 'canonical' submission webform and not the back-end 'edit-form'.

Overrides ConfigEntityBase::toUrl

File

src/Entity/Webform.php, line 3049

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function toUrl($rel = 'canonical', array $options = []) {
  return parent::toUrl($rel, $options);
}