Problem/Motivation

As of https://docs.google.com/document/d/1BxgNvyIRcxYGzzA1DLkZ6A4-c8gGFixypNvP... we want to make clear which bits of the URL generation
machinery should be used

Proposed resolution

* \Drupal\Core\Routing\UrlGeneratorInterface::generate() should be marked as internal.
* It should point to \Drupal\Core\Url instead

Remaining tasks

User interface changes

API changes

Data model changes

Comments

dawehner created an issue. See original summary.

dawehner’s picture

Issue summary: View changes
dawehner’s picture

Component: base system » documentation
sdstyles’s picture

Status: Active » Needs review
StatusFileSize
new786 bytes
jhodgdon’s picture

Status: Needs review » Needs work
+++ b/core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php
@@ -77,6 +77,9 @@ public function getPathFromRoute($name, $parameters = array());
+   * @internal Should not be used in user code.
+   *   Use \Drupal\Core\Url instead.

I don't think we put documentation along with the @internal tag? We do that with @deprecated, but I think @api and @internal are stand-alone tags.

kaushalkishorejaiswal’s picture

Status: Needs work » Needs review
StatusFileSize
new737 bytes

Status: Needs review » Needs work

The last submitted patch, 6: 2606378-6.patch, failed testing.

anil280988’s picture

Status: Needs work » Needs review
StatusFileSize
new795 bytes

Keeping @internal tag separate.

anil280988’s picture

StatusFileSize
new764 bytes

Adding Interdiff file.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +rc eligible

Thank you

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

  • catch committed 67d9c3e on 8.0.x
    Issue #2606378 by anil280988, kaushalkishorejaiswal, sdstyles: mark \...

The last submitted patch, 6: 2606378-6.patch, failed testing.

  • catch committed 67d9c3e on 8.1.x
    Issue #2606378 by anil280988, kaushalkishorejaiswal, sdstyles: mark \...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.