You are here

public function Attachment::isApplicable in jQuery World Calendars API 3.x

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/Attachment.php, line 52

Class

Attachment
An implementation of PageAttachmentInterface for the library.

Namespace

Drupal\jquery_calendar

Code

public function isApplicable() {
  return !InstallerKernel::installationAttempted() && $this->activation
    ->isActive();
}