You are here

public function ColorboxAttachment::__construct in Colorbox 8

Create an instance of ColorboxAttachment.

File

src/ColorboxAttachment.php, line 41

Class

ColorboxAttachment
An implementation of PageAttachmentInterface for the colorbox library.

Namespace

Drupal\colorbox

Code

public function __construct(ActivationCheckInterface $activation, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config) {
  $this->activation = $activation;
  $this->moduleHandler = $module_handler;
  $this->settings = $config
    ->get('colorbox.settings');
}