class MandrillTemplateServiceProvider in Mandrill 8
Modifies the Mandrill service to allow templated emails to be sent.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\mandrill_template\MandrillTemplateServiceProvider
Expanded class hierarchy of MandrillTemplateServiceProvider
File
- modules/
mandrill_template/ src/ MandrillTemplateServiceProvider.php, line 16 - Contains Drupal\mandrill_template\MandrillTemplateServiceProvider
Namespace
Drupal\mandrill_templateView source
class MandrillTemplateServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('mandrill.service');
$definition
->setClass('Drupal\\mandrill_template\\MandrillTemplateService');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MandrillTemplateServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |