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_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_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_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_js_settings_alter

system_js_settings_alter(&$settings, AttachedAssetsInterface $assets) Implements hook_js_settings_alter(). Sets values which depend on the current request, like core/drupalSettings as well as theme_token ajax state. File core/modules/system/system.module, line 667 Configuration system that lets administrators modify the workings of the site. Code function system_js_settings_alter(&$settings, AttachedAssetsInterface $assets) { // As this is being output in the final response always u

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_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_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

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_get_info

system_get_info($type, $name = NULL) Returns an array of information about enabled modules or themes. This function returns the contents of the .info.yml file for each installed module or theme. Parameters $type: Either 'module' or 'theme'. $name: (optional) The name of a module or theme whose information shall be returned. If omitted, all records for the provided $type will be returned. If $name does not exist in the provided $type or is not enabled, an empty array will be returned. Return va