public function FieldPdfReaderField::isColorboxInstalled in PDF Reader 8
Checks if the colorbox and the libraries module are enabled.
Return value
bool TRUE, if colorbox and libraries module are enabled, FALSE otherwise.
2 calls to FieldPdfReaderField::isColorboxInstalled()
- FieldPdfReaderField::getPdfDisplayOptions in src/
Plugin/ Field/ FieldFormatter/ FieldPdfReaderField.php - Callback function to return PDF display options.
- FieldPdfReaderField::viewElements in src/
Plugin/ Field/ FieldFormatter/ FieldPdfReaderField.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ FieldPdfReaderField.php, line 36
Class
- FieldPdfReaderField
- Plugin implementation of the 'FieldPdfReaderFields' formatter.
Namespace
Drupal\pdf_reader\Plugin\Field\FieldFormatterCode
public function isColorboxInstalled() {
if (\Drupal::moduleHandler()
->moduleExists('colorbox') && \Drupal::moduleHandler()
->moduleExists('libraries')) {
$this->isColorboxInstalled = TRUE;
return $this->isColorboxInstalled;
}
}