What are service tags?
- Read more about What are service tags?
- Log in to post comments
Tagged services are loaded dynamically.
Tagged services are loaded dynamically.
In Drupal, both the __construct() and create() methods play key roles in the instantiation of objects, particularly when services are injected via Dependency Injection. However, they serve different purposes and are used in different ways.
Both interfaces are part of the dependency injection system, but they belong to different namespaces and serve different purposes in the context of Drupal's architecture.
Drupal development tools guide.
PHPStorm plugin for better autocompletion.
A blog post about hot to use PHP Attributes in Drupal.
Some extra guidelines for Drupal 8+ code.
Services can automatically include their dependencies using autowire: true.
Lullabot's ADRs.