You are here

public function Webform::url in Webform 8.5

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

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

Overrides ConfigEntityBase::url

File

src/Entity/Webform.php, line 3037

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function url($rel = 'canonical', $options = []) {

  // Do not remove this override: the default value of $rel is different.
  return parent::url($rel, $options);
}