Issue #2327455 by marvil07: Fixed Typo in services example use at core.api.php.

8.0.x
webchick 2014-08-26 10:28:00 -07:00
parent eb21fc37a7
commit 88c03db8b5
1 changed files with 2 additions and 2 deletions

View File

@ -700,9 +700,9 @@
* generic method to access any service. Examples:
* @code
* // Retrieve the entity.manager service object (special method exists).
* $manager = \Drupal->entityManager();
* $manager = \Drupal::entityManager();
* // Retrieve the service object for machine name 'foo.bar'.
* $foobar = \Drupal->service('foo.bar');
* $foobar = \Drupal::service('foo.bar');
* @endcode
*
* As a note, you should always use dependency injection (via service arguments