You are here

printable.install in Printer and PDF versions for Drupal 8+ 8

Same filename and directory in other branches
  1. 2.x printable.install

File

printable.install
View 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

Namesort descending Description
printable_requirements Implements hook_requirements().