Skip to content
Snippets Groups Projects
Commit 88c03db8 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent eb21fc37
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -700,9 +700,9 @@ ...@@ -700,9 +700,9 @@
* generic method to access any service. Examples: * generic method to access any service. Examples:
* @code * @code
* // Retrieve the entity.manager service object (special method exists). * // Retrieve the entity.manager service object (special method exists).
* $manager = \Drupal->entityManager(); * $manager = \Drupal::entityManager();
* // Retrieve the service object for machine name 'foo.bar'. * // Retrieve the service object for machine name 'foo.bar'.
* $foobar = \Drupal->service('foo.bar'); * $foobar = \Drupal::service('foo.bar');
* @endcode * @endcode
* *
* As a note, you should always use dependency injection (via service arguments * As a note, you should always use dependency injection (via service arguments
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment