Verified Commit fdaf91a5 authored by Jess's avatar Jess
Browse files

Issue #2574981 by Manjit.Singh, dimaro, wengerk, darol100, izus, pguillard,...

Issue #2574981 by Manjit.Singh, dimaro, wengerk, darol100, izus, pguillard, vsujeetkumar, Himanshu5050, snehi, paulocs, rakesh.gectcr, jofitz, _utsavsharma, charginghawk, rajeshwari10, sdstyles, quietone, benjifisher, marcusvsouza, LoMo, joelpittet, justAChris, cilefen, YesCT, mradcliffe, spitzialist, annajl, jhodgdon, catch, alexpott, Sabbi0612, kattekrab, Mile23, antojose, leanderl, rodrigoac: Fix grammar ("an URL" should be "a URL") and consistent use of URL (not "url" / "Url") in documentation only

(cherry picked from commit 00bcd174)
parent e9cde297
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -565,10 +565,10 @@ public static function token() {
  }

  /**
   * Returns the url generator service.
   * Returns the URL generator service.
   *
   * @return \Drupal\Core\Routing\UrlGeneratorInterface
   *   The url generator service.
   *   The URL generator service.
   */
  public static function urlGenerator() {
    return static::getContainer()->get('url_generator');
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class EntityController implements ContainerInjectionInterface {
   * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
   *   The string translation.
   * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
   *   The url generator.
   *   The URL generator.
   */
  public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityRepositoryInterface $entity_repository, RendererInterface $renderer, TranslationInterface $string_translation, UrlGeneratorInterface $url_generator) {
    $this->entityTypeManager = $entity_type_manager;
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ class MaintenanceModeSubscriber implements EventSubscriberInterface {
  protected $config;

  /**
   * The url generator.
   * The URL generator.
   *
   * @var \Drupal\Core\Routing\UrlGeneratorInterface
   */
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class Link implements RenderableInterface {
   *   the output of \Drupal\Component\Utility\Xss::filter() or
   *   \Drupal\Component\Render\FormattableMarkup.
   * @param \Drupal\Core\Url $url
   *   The url object.
   *   The \Drupal\Core\Url object.
   */
  public function __construct($text, Url $url) {
    $this->text = $text;
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
 *         type: entity:node
 * @endcode
 *
 * If you want to have the entity type itself dynamic in the url you can
 * If you want to have the entity type itself dynamic in the URL you can
 * specify it like the following:
 * @code
 * example.route:
Loading