Defines a common interface for entity controllers.
This interface can be implemented by entity controllers that require dependency injection. These are not controllers in the routing sense of the word, but instead are handlers that perform a specific function for an entity type.
Expanded class hierarchy of EntityControllerInterface
All classes that implement EntityControllerInterface
interface EntityControllerInterface {
/**
* Instantiates a new instance of this entity controller.
*
* This is a factory method that returns a new instance of this object. The
* factory should pass any needed dependencies into the constructor of this
* object, but not the container itself. Every call to this method must return
* a new instance of this object; that is, it may not implement a singleton.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The service container this object should use.
* @param string $entity_type
* The entity type which the controller handles.
* @param array $entity_info
* An array of entity info for the entity type.
*
* @return static
* A new instance of the entity controller.
*/
public static function createInstance(ContainerInterface $container, $entity_type, array $entity_info);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityControllerInterface:: |
public static | function | Instantiates a new instance of this entity controller. | 8 |