Skip to content

Commit

Permalink
Issue #3063694 by dhirendra.mishra, devoidfury, joachim: class docs f…
Browse files Browse the repository at this point in the history
…or Url should give an overview of how to create one

(cherry picked from commit dbc74bbb9c25a76e77f573aee63c724ff81a7a2e)
  • Loading branch information
xjm committed May 3, 2020
1 parent ef99ab3 commit a0dc46c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Drupal/Core/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@

/**
* Defines an object that holds information about a URL.
*
* In most cases, these should be created with the following methods:
* - \Drupal\Core\Url::fromRoute()
* - \Drupal\Core\Url::fromRouteMatch()
* - \Drupal\Core\Url::fromUri()
* - \Drupal\Core\Url::fromUserInput()
*
* @see \Drupal\Core\Entity\EntityBase::toUrl()
*/
class Url implements TrustedCallbackInterface {
use DependencySerializationTrait;
Expand Down

0 comments on commit a0dc46c

Please sign in to comment.