From b5818f8d7368718c0ff3315e6b21b2b84c963ce8 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 9 Apr 2018 23:29:49 +0100 Subject: [PATCH] Issue #2958862 by msankhala, jhodgdon, joachim: Sample code needs to have namespace on the Url class --- core/lib/Drupal/Core/Render/Element/Link.php | 6 +++--- 1 file 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 216f068a49d7..25edc42c9810 100644 --- a/core/lib/Drupal/Core/Render/Element/Link.php +++ b/core/lib/Drupal/Core/Render/Element/Link.php @@ -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 * -- GitLab