private static function UnusedModulesHelperService::decorateExtension in Unused Modules 8
Decorate helper. Used as array_map() callback.
Parameters
\Drupal\Core\Extension\Extension $extension: The Extension to decorate.
Return value
\Drupal\unused_modules\UnusedModulesExtensionDecorator Decorated Extension.
File
- src/
UnusedModulesHelperService.php, line 253
Class
- UnusedModulesHelperService
- Common Unused Modules functionality.
Namespace
Drupal\unused_modulesCode
private static function decorateExtension(Extension $extension) {
return new UnusedModulesExtensionDecorator($extension);
}