You are here

class GoogleApplianceTestServiceProvider in Google Search Appliance 8

Defines a class for modifying the search service in tests.

Hierarchy

Expanded class hierarchy of GoogleApplianceTestServiceProvider

File

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

Namespace

Drupal\google_appliance_test
View source
class GoogleApplianceTestServiceProvider implements ServiceModifierInterface {

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

}

Members

Namesort descending Modifiers Type Description Overrides
GoogleApplianceTestServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter