summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Render
diff options
context:
space:
mode:
authorAlex Pott2018-04-09 22:29:49 (GMT)
committerAlex Pott2018-04-09 22:29:49 (GMT)
commitb5818f8d7368718c0ff3315e6b21b2b84c963ce8 (patch)
tree0a3982cbd12e6ed8dd1f51b6e21c13a221ecb521 /core/lib/Drupal/Core/Render
parente00319e280ae1bc614e28bab4a74285f5a9d4ea4 (diff)
Issue #2958862 by msankhala, jhodgdon, joachim: Sample code needs to have namespace on the Url class
Diffstat (limited to 'core/lib/Drupal/Core/Render')
-rw-r--r--core/lib/Drupal/Core/Render/Element/Link.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/lib/Drupal/Core/Render/Element/Link.php b/core/lib/Drupal/Core/Render/Element/Link.php
index 216f068..25edc42 100644
--- a/core/lib/Drupal/Core/Render/Element/Link.php
+++ b/core/lib/Drupal/Core/Render/Element/Link.php
@@ -12,15 +12,15 @@ use Drupal\Core\Url as CoreUrl;
*
* 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
*