function media_entity_image_requirements in Media entity image 8
Implements hook_requirements().
File
- ./
media_entity_image.install, line 36 - Install, uninstall and update hooks for Media entity image module.
Code
function media_entity_image_requirements() {
$requirements = [];
if (version_compare(\Drupal::VERSION, '8.4.0', '>=') && \Drupal::moduleHandler()
->moduleExists('media')) {
$requirements['media_entity_image: Not compatible with core Media'] = [
'title' => t('Core Media'),
'description' => t("Media Entity Image's functionality has been merged into the core Media module, so it cannot be installed alongside core Media."),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}