function printable_requirements in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x printable.install \printable_requirements()
Implements hook_requirements().
File
- ./
printable.install, line 6
Code
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;
}