public function MandrillTemplateServiceProvider::alter in Mandrill 8
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceProviderBase::alter
File
- modules/
mandrill_template/ src/ MandrillTemplateServiceProvider.php, line 21 - Contains Drupal\mandrill_template\MandrillTemplateServiceProvider
Class
- MandrillTemplateServiceProvider
- Modifies the Mandrill service to allow templated emails to be sent.
Namespace
Drupal\mandrill_templateCode
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('mandrill.service');
$definition
->setClass('Drupal\\mandrill_template\\MandrillTemplateService');
}