You are here

public function GoogleApplianceTestServiceProvider::alter in Google Search Appliance 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceModifierInterface::alter

File

tests/modules/google_appliance_test/src/GoogleApplianceTestServiceProvider.php, line 16

Class

GoogleApplianceTestServiceProvider
Defines a class for modifying the search service in tests.

Namespace

Drupal\google_appliance_test

Code

public function alter(ContainerBuilder $container) {
  $container
    ->getDefinition('google_appliance.search')
    ->setClass(TestSearch::class);
}