You are here

public function ActivationCheck::isActive in Colorbox 8

Check if colorbox should be activated for the current page.

Return value

bool If colorbox should be active.

Overrides ActivationCheckInterface::isActive

File

src/ActivationCheck.php, line 38

Class

ActivationCheck
Implementation of ActivationCheckInterface.

Namespace

Drupal\colorbox

Code

public function isActive() {
  return $this->request
    ->get('colorbox') !== 'no';
}