class FrozenintimeServiceProvider in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.0.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.1.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.2.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.3.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.4.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.5.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.6.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.7.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
- 3.8.x tests/modules/frozenintime/src/FrozenintimeServiceProvider.php \Drupal\frozenintime\FrozenintimeServiceProvider
Modifies the time service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\frozenintime\FrozenintimeServiceProvider
Expanded class hierarchy of FrozenintimeServiceProvider
File
- tests/
modules/ frozenintime/ src/ FrozenintimeServiceProvider.php, line 11
Namespace
Drupal\frozenintimeView source
class FrozenintimeServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Overrides language_manager class to test domain language negotiation.
$definition = $container
->getDefinition('datetime.time');
$definition
->setClass('Drupal\\frozenintime\\FrozenTime');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FrozenintimeServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |