You are here

public function YamlForm::url in YAML Form 8

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

Overrides ConfigEntityBase::url

File

src/Entity/YamlForm.php, line 1398

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\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);
}