src/Drupal/functions system.php

Functions

system_get_info()

system_get_info(string  $type, ?string  $name = null) : array

Parameters

string $type
?string $name

Returns

array —

system_rebuild_module_data()

system_rebuild_module_data() : array<string,\stdClass>

Lists every discovered module as Drupal 7 did, keyed by name.

Each value is an object with name, type, filename, status, info, requires and required_by. The info array is Drupal 11's with dependencies as plain module names. Keys Drupal 11 has no source for (schema_version, weight, bootstrap) are not set.

Returns

array —