Unverified Commit b5818f8d authored by alexpott's avatar alexpott

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
......@@ -12,15 +12,15 @@
*
* Properties:
* - #title: The link text.
* - #url: \Drupal\Url object containing URL information pointing to a internal
* or external link . See \Drupal\Core\Utility\LinkGeneratorInterface.
* - #url: \Drupal\Core\Url object containing URL information pointing to a
* internal or external link. See \Drupal\Core\Utility\LinkGeneratorInterface.
*
* Usage example:
* @code
* $build['examples_link'] = [
* '#title' => $this->t('Examples'),
* '#type' => 'link',
* '#url' => Url::fromRoute('examples.description')
* '#url' => \Drupal\Core\Url::fromRoute('examples.description')
* ];
* @endcode
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment