Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443205
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443205
Commits
71502cc0
Commit
71502cc0
authored
10 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2363523
by donquixote, er.pushpinderrana: Docblock / cleanup in \Drupal
parent
093d931f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal.php
+22
-3
22 additions, 3 deletions
core/lib/Drupal.php
with
22 additions
and
3 deletions
core/lib/Drupal.php
+
22
−
3
View file @
71502cc0
...
...
@@ -93,9 +93,9 @@ class Drupal {
const
CORE_MINIMUM_SCHEMA_VERSION
=
8000
;
/**
* The currently active container object.
* The currently active container object
, or NULL if not initialized yet
.
*
* @var \Symfony\Component\DependencyInjection\ContainerInterface
* @var \Symfony\Component\DependencyInjection\ContainerInterface
|null
*/
protected
static
$container
;
...
...
@@ -117,7 +117,7 @@ public static function setContainer(ContainerInterface $container = NULL) {
* @deprecated This method is only useful for the testing environment. It
* should not be used otherwise.
*
* @return \Symfony\Component\DependencyInjection\ContainerInterface
* @return \Symfony\Component\DependencyInjection\ContainerInterface
|null
*/
public
static
function
getContainer
()
{
return
static
::
$container
;
...
...
@@ -478,6 +478,17 @@ public static function urlGenerator() {
* the base path (like robots.txt) use Url::fromUri()->toString() with the
* base:// scheme.
*
* @param string $route_name
* The name of the route.
* @param array $route_parameters
* (optional) An associative array of parameter names and values.
* @param array $options
* (optional) An associative array of additional options.
*
* @return string
* The generated URL for the given route.
*
* @see \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute()
* @see \Drupal\Core\Url
* @see \Drupal\Core\Url::fromRoute()
* @see \Drupal\Core\Url::fromUri()
...
...
@@ -502,6 +513,14 @@ public static function linkGenerator() {
* generate() method. For detailed documentation, see
* \Drupal\Core\Routing\LinkGeneratorInterface::generate().
*
* @param string $text
* The link text for the anchor tag.
* @param \Drupal\Core\Url $url
* The URL object used for the link.
*
* @return string
* An HTML string containing a link to the given route and parameters.
*
* @see \Drupal\Core\Utility\LinkGeneratorInterface::generate()
* @see \Drupal\Core\Url
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment