You are here

public function NgLightboxServiceProvider::alter in NG Lightbox 8

Same name and namespace in other branches
  1. 2.x src/NgLightboxServiceProvider.php \Drupal\ng_lightbox\NgLightboxServiceProvider::alter()

Modifies existing service definitions.

Parameters

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

Overrides ServiceProviderBase::alter

File

src/NgLightboxServiceProvider.php, line 28
Contains \Drupal\ng_lightbox\NgLightboxServiceProvider

Class

NgLightboxServiceProvider
The NgLightboxServiceProvider class.

Namespace

Drupal\ng_lightbox

Code

public function alter(ContainerBuilder $container) {
  $this
    ->addLightbox($container, 'main_content_renderer.dialog', 'Core Dialog');
  $this
    ->addLightbox($container, 'main_content_renderer.modal', 'Core Modal');
}