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\colorboxCode
public function isActive() {
return $this->request
->get('colorbox') !== 'no';
}