class CommentPermServiceProvider in Comment Permissions 8
Comment permissions service provider.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\comment_perm\CommentPermServiceProvider
Expanded class hierarchy of CommentPermServiceProvider
File
- src/
CommentPermServiceProvider.php, line 11
Namespace
Drupal\comment_permView source
class CommentPermServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
$container
->getDefinition('comment.link_builder')
->setClass('Drupal\\comment_perm\\CommentLinkBuilder');
$container
->getDefinition('comment.manager')
->setClass('Drupal\\comment_perm\\CommentManager');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommentPermServiceProvider:: |
public | function |
Registers services to the container. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |
5 |