printable.install in Printer and PDF versions for Drupal 8+ 8
Same filename and directory in other branches
File
printable.installView source
<?php
/**
* Implements hook_requirements().
*/
function printable_requirements() {
$requirements = [];
if (!class_exists('\\Wa72\\HtmlPageDom\\HtmlPageCrawler')) {
$requirements['printable_library'] = [
'title' => t('Printable'),
'value' => t('Not available'),
'description' => t('The Printable module depends on the <b>@library</b> library. Please install the library (eg using composer) and then enable this module.', [
'@library' => "wa72/htmlpagedom",
]),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}
Functions
Name | Description |
---|---|
printable_requirements | Implements hook_requirements(). |