class DeprecatedModuleTestHooks

Hook implementations for deprecated_module_test.

Hierarchy

Expanded class hierarchy of DeprecatedModuleTestHooks

File

core/modules/system/tests/modules/deprecated_module_test/src/Hook/DeprecatedModuleTestHooks.php, line 13

Namespace

Drupal\deprecated_module_test\Hook
View source
class DeprecatedModuleTestHooks {
    
    /**
     * Implements hook_system_info_alter().
     */
    public function systemInfoAlter(array &$info, Extension $file, $type) {
        // Make the 'deprecated_module_contrib' look like it isn't part of core.
        if ($type === 'module' && $info['name'] === 'Deprecated module contrib') {
            $file->origin = 'sites/all';
        }
    }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.