Issue #3063694 by dhirendra.mishra, devoidfury, joachim: class docs for Url should give an overview of how to create one

merge-requests/2419/head
xjm 2020-05-02 18:48:24 -05:00
parent 68c5399a7f
commit dbc74bbb9c
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,14 @@ use Symfony\Component\HttpFoundation\Request;
/**
* 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;