You are here

class DefaultcontentServiceProvider in Default Content 8

Hierarchy

Expanded class hierarchy of DefaultcontentServiceProvider

File

src/DefaultcontentServiceProvider.php, line 10
Contains \Drupal\defaultcontent\defaultContentServiceProvider.

Namespace

Drupal\defaultcontent
View source
class DefaultcontentServiceProvider extends \Drupal\Core\DependencyInjection\ServiceProviderBase {
  public function alter(\Drupal\Core\DependencyInjection\ContainerBuilder $container) {

    // Override the language_manager class with a new class.
    $definition = $container
      ->getDefinition('rest.link_manager.type');
    $definition
      ->setClass('Drupal\\defaultcontent\\LinkManager\\TypeLinkManager');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultcontentServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1