You are here

function php_library_info_alter in PHP 8

Implements hook_library_info_alter().

File

./php.module, line 32
Additional filter for PHP input.

Code

function php_library_info_alter(&$libraries, $extension) {

  // Load php.admin.js whenever drupal.block library is added.
  if ($extension == 'block' && isset($libraries['drupal.block'])) {
    $libraries['drupal.block']['dependencies'][] = 'php/php.block.admin';
  }
}