July 2017
Intermediate to advanced
456 pages
11h 32m
English
Defines the parent to the service, which is almost always paired with abstract services. This is implemented in the service as either normal inheritance or as a trait. For instance:
entity.manager: class: Drupal\Core\Entity\EntityManager parent: container.trait
defines the Drupal\Core\Entity\EntityManager class, which uses the Symfony\Component\DependencyInjection\ContainerAwareTrait.
Read now
Unlock full access