class GoogleApplianceTestServiceProvider in Google Search Appliance 8
Defines a class for modifying the search service in tests.
Hierarchy
- class \Drupal\google_appliance_test\GoogleApplianceTestServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of GoogleApplianceTestServiceProvider
File
- tests/
modules/ google_appliance_test/ src/ GoogleApplianceTestServiceProvider.php, line 11
Namespace
Drupal\google_appliance_testView source
class GoogleApplianceTestServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$container
->getDefinition('google_appliance.search')
->setClass(TestSearch::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GoogleApplianceTestServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |