You are here

function page_manager_requirements in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager.install \page_manager_requirements()

Implements hook_requirements().

@todo: Remove this when https://www.drupal.org/node/2641658 is fixed.

File

./page_manager.install, line 13
Contains update functions for Page Manager.

Code

function page_manager_requirements($phase) {
  $requirements = [];

  // Check that core actually is >= 8.0.5.
  if (!version_compare(\Drupal::VERSION, '8.0.5', '>=')) {
    $requirements['page_manager_core_version'] = [
      'title' => t('Page manager Drupal core version'),
      'value' => \Drupal::VERSION,
      'description' => t('Page manager requires at least Drupal core 8.0.5.'),
      'severity' => REQUIREMENT_ERROR,
    ];
  }
  return $requirements;
}