Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit dbc02efa authored by Abel Santos's avatar Abel Santos
Browse files

OEL-1280: Add oe_whitelabel_helper.install to check paragraphs requirements.

parent f7c1ddfe
No related branches found
No related tags found
5 merge requests!121OEL-1421: Fix cosmetic changes.,!116OEL-1394: Merge 1.x into EPIC-1293-Project, align with new version of card:search pattern,!115Upate the EPIC-1293-project,!105EPIC: OEL-1255: Migrate paragraphs,!93[OEL-1255] OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme
<?php
/**
* @file
* Install and update functions for the OE Whitelabel Helper module.
*/
declare(strict_types = 1);
/**
* Implements hook_requirements().
*/
function oe_whitelabel_helper_requirements($phase): array {
$requirements = [];
if (\Drupal::moduleHandler()->moduleExists('oe_paragraphs') && !\Drupal::moduleHandler()->moduleExists('oe_whitelabel_paragraphs')) {
$requirements['oe_whitelabel_paragraphs'] = [
'title' => 'OpenEuropa Whitelabel Paragraphs',
'description' => t('OpenEuropa Whitelabel Paragraphs is required if OpenEuropa Paragraphs is enabled.'),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment