Including security review as a submodule - with patched for Yaffs.
[yaffs-website] / web / modules / contrib / twig_xdebug / twig_xdebug.install
1 <?php
2
3 /**
4  * @file
5  * Twig Xdebug install and update hooks.
6  */
7
8 /**
9  * Implements hook_requirements().
10  */
11 function twig_xdebug_requirements($phase) {
12   $requirements = [];
13   if ($phase == 'install') {
14     if (!class_exists('\Ajgl\Twig\Extension\BreakpointExtension')) {
15       $requirements['breakpoints_library'] = [
16         'description' => t('Twig Xdebug requires the ajgl/breakpoint-twig-extension library.'),
17         'severity' => REQUIREMENT_ERROR,
18       ];
19     }
20   }
21
22   return $requirements;
23 }