Skip to content
Snippets Groups Projects
Unverified Commit b5818f8d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2958862 by msankhala, jhodgdon, joachim: Sample code needs to have...

Issue #2958862 by msankhala, jhodgdon, joachim: Sample code needs to have namespace on the Url class
parent e00319e2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
* *
* Properties: * Properties:
* - #title: The link text. * - #title: The link text.
* - #url: \Drupal\Url object containing URL information pointing to a internal * - #url: \Drupal\Core\Url object containing URL information pointing to a
* or external link . See \Drupal\Core\Utility\LinkGeneratorInterface. * internal or external link. See \Drupal\Core\Utility\LinkGeneratorInterface.
* *
* Usage example: * Usage example:
* @code * @code
* $build['examples_link'] = [ * $build['examples_link'] = [
* '#title' => $this->t('Examples'), * '#title' => $this->t('Examples'),
* '#type' => 'link', * '#type' => 'link',
* '#url' => Url::fromRoute('examples.description') * '#url' => \Drupal\Core\Url::fromRoute('examples.description')
* ]; * ];
* @endcode * @endcode
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment