class DefaultcontentServiceProvider in Default Content 8
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\defaultcontent\DefaultcontentServiceProvider
Expanded class hierarchy of DefaultcontentServiceProvider
File
- src/
DefaultcontentServiceProvider.php, line 10 - Contains \Drupal\defaultcontent\defaultContentServiceProvider.
Namespace
Drupal\defaultcontentView source
class DefaultcontentServiceProvider extends \Drupal\Core\DependencyInjection\ServiceProviderBase {
public function alter(\Drupal\Core\DependencyInjection\ContainerBuilder $container) {
// Override the language_manager class with a new class.
$definition = $container
->getDefinition('rest.link_manager.type');
$definition
->setClass('Drupal\\defaultcontent\\LinkManager\\TypeLinkManager');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultcontentServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |