system_list

system_list($type) Builds a list of installed themes. Parameters $type: The type of list to return: theme: All installed themes. Return value An associative array of themes, keyed by name. For $type 'theme', the array values are objects representing the respective database row, with the 'info' property already unserialized. See also \Drupal\Core\Extension\ThemeHandler::listInfo() File core/includes/module.inc, line 24 API for loading and interacting with Drupal modules. Code function sy

system_mail

system_mail($key, &$message, $params) Implements hook_mail(). File core/modules/system/system.module, line 1307 Configuration system that lets administrators modify the workings of the site. Code function system_mail($key, &$message, $params) { $token_service = \Drupal::token(); $context = $params['context']; $subject = PlainTextOutput::renderFromHtml($token_service->replace($context['subject'], $context)); $body = $token_service->replace($context['message'], $context)

system_js_settings_build

system_js_settings_build(&$settings, AttachedAssetsInterface $assets) Implements hook_js_settings_build(). Sets values for the core/drupal.ajax library, which just depends on the active theme but no other request-dependent values. File core/modules/system/system.module, line 641 Configuration system that lets administrators modify the workings of the site. Code function system_js_settings_build(&$settings, AttachedAssetsInterface $assets) { // Generate the values for the core/drupal

system_page_attachments

system_page_attachments(array &$page) Implements hook_page_attachments(). See also template_preprocess_maintenance_page() \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter File core/modules/system/system.module, line 547 Configuration system that lets administrators modify the workings of the site. Code function system_page_attachments(array &$page) { // Ensure the same CSS is loaded in template_preprocess_maintenance_page(). $page['#attached']['library'][] = 'system/base';

system_list_reset

system_list_reset() Resets all system_list() caches. File core/includes/module.inc, line 58 API for loading and interacting with Drupal modules. Code function system_list_reset() { drupal_static_reset('system_list'); drupal_static_reset('system_rebuild_module_data'); \Drupal::cache('bootstrap')->delete('system_list'); }

system_get_module_admin_tasks

system_get_module_admin_tasks($module, array $info) Generate a list of tasks offered by a specified module. Parameters string $module: Module name. array $info: The module's information, as provided by system_get_info(). Return value array An array of task links. File core/modules/system/system.module, line 1211 Configuration system that lets administrators modify the workings of the site. Code function system_get_module_admin_tasks($module, array $info) { $tree = &drupal_static(__FUN

system_hook_info

system_hook_info() Implements hook_hook_info(). File core/modules/system/system.module, line 233 Configuration system that lets administrators modify the workings of the site. Code function system_hook_info() { $hooks['token_info'] = array( 'group' => 'tokens', ); $hooks['token_info_alter'] = array( 'group' => 'tokens', ); $hooks['tokens'] = array( 'group' => 'tokens', ); $hooks['tokens_alter'] = array( 'group' => 'tokens', ); return $hooks; }

system_install

system_install() Implements hook_install(). File core/modules/system/system.install, line 875 Install, update and uninstall functions for the system module. Code function system_install() { // Populate the cron key state variable. $cron_key = Crypt::randomBytesBase64(55); \Drupal::state()->set('system.cron_key', $cron_key); // Populate the site UUID and default name (if not set). $site = \Drupal::configFactory()->getEditable('system.site'); $site->set('uuid', \Drupal::se

system_form_user_register_form_alter

system_form_user_register_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for \Drupal\user\RegisterForm. File core/modules/system/system.module, line 769 Configuration system that lets administrators modify the workings of the site. Code function system_form_user_register_form_alter(&$form, FormStateInterface $form_state) { $config = \Drupal::config('system.date'); if ($config->get('timezone.user.configurable') && $config->get(

system_help

system_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/system/system.module, line 78 Configuration system that lets administrators modify the workings of the site. Code function system_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.system': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The System module is integral to the site: i