public static function ContainerForm::create in GoogleTagManager 8
This routine is the trick to DependencyInjection in Drupal. Without it the __construct method complains of no arguments instead of three.
Overrides FormBase::create
File
- src/
Form/ ContainerForm.php, line 60
Class
- ContainerForm
- Defines the Google tag manager container settings form.
Namespace
Drupal\google_tag\FormCode
public static function create(ContainerInterface $container) {
return new static($container
->get('plugin.manager.condition'), $container
->get('context.repository'));
}