You are here

class TokenServiceProvider in Token 8

Replace core's token service with our own.

Hierarchy

Expanded class hierarchy of TokenServiceProvider

File

src/TokenServiceProvider.php, line 11

Namespace

Drupal\token
View source
class TokenServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('token');
    $definition
      ->setClass('\\Drupal\\token\\Token');
  }

}

Members

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