interface ContainerInjectionInterface
Defines a common interface for dependency container injection.
This interface gives classes who need services a factory method for instantiation rather than defining a new service.
Hierarchy
- interface \Drupal\Core\DependencyInjection\ContainerInjectionInterface
File
- core/lib/Drupal/Core/DependencyInjection/ContainerInjectionInterface.php, line 13
Namespace
Drupal\Core\DependencyInjectionMembers
Name | Modifiers | Type | Description |
---|---|---|---|
ContainerInjectionInterface::create | public static | function | Instantiates a new instance of this class. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!ContainerInjectionInterface.php/interface/ContainerInjectionInterface/8.1.x