public function ColorboxAttachment::isApplicable in Colorbox 8
Check if the attachment should be added to the current page.
Return value
bool TRUE if the attachment should be added to the current page.
Overrides ElementAttachmentInterface::isApplicable
File
- src/
ColorboxAttachment.php, line 50
Class
- ColorboxAttachment
- An implementation of PageAttachmentInterface for the colorbox library.
Namespace
Drupal\colorboxCode
public function isApplicable() {
return !InstallerKernel::installationAttempted() && $this->activation
->isActive();
}