system_theme_suggestions_page

system_theme_suggestions_page(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/system/system.module, line 266 Configuration system that lets administrators modify the workings of the site. Code function system_theme_suggestions_page(array $variables) { if (\Drupal::service('path.matcher')->isFrontPage()) { $path_args = ['']; } else { $path_args = explode('/', Url::fromRoute('<current>')->getInternalPath()); } return theme_get_suggesti

system_user_login

system_user_login(UserInterface $account) Implements hook_user_login(). File core/modules/system/system.module, line 789 Configuration system that lets administrators modify the workings of the site. Code function system_user_login(UserInterface $account) { $config = \Drupal::config('system.date'); // If the user has a NULL time zone, notify them to set a time zone. if (!$account->getTimezone() && $config->get('timezone.user.configurable') && $config->get('timez

system_theme_suggestions_field

system_theme_suggestions_field(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/system/system.module, line 313 Configuration system that lets administrators modify the workings of the site. Code function system_theme_suggestions_field(array $variables) { $suggestions = array(); $element = $variables['element']; $suggestions[] = 'field__' . $element['#field_type']; $suggestions[] = 'field__' . $element['#field_name']; $suggestions[] = 'field__' . $elemen

system_sort_modules_by_info_name

system_sort_modules_by_info_name($a, $b) Array sorting callback; sorts modules by their name. File core/modules/system/system.module, line 1130 Configuration system that lets administrators modify the workings of the site. Code function system_sort_modules_by_info_name($a, $b) { return strcasecmp($a->info['name'], $b->info['name']); }

system_sort_themes

system_sort_themes($a, $b) Sorts themes by their names, with the default theme listed first. Callback for uasort() within \Drupal\system\Controller\SystemController::themesPage(). See also system_sort_modules_by_info_name() File core/modules/system/system.module, line 1142 Configuration system that lets administrators modify the workings of the site. Code function system_sort_themes($a, $b) { if ($a->is_default) { return -1; } if ($b->is_default) { return 1; } return

system_schema

system_schema() Implements hook_schema(). File core/modules/system/system.install, line 892 Install, update and uninstall functions for the system module. Code function system_schema() { $schema['key_value'] = array( 'description' => 'Generic key-value storage table. See the state system for an example.', 'fields' => array( 'collection' => array( 'description' => 'A named collection of key and value pairs.', 'type' => 'varchar_ascii', 'le

system_theme_suggestions_html

system_theme_suggestions_html(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/system/system.module, line 253 Configuration system that lets administrators modify the workings of the site. Code function system_theme_suggestions_html(array $variables) { if (\Drupal::service('path.matcher')->isFrontPage()) { $path_args = ['']; } else { $path_args = explode('/', ltrim(\Drupal::service('path.current')->getPath(), '/')); } return theme_get_sugge

system_system_info_alter

system_system_info_alter(&$info, Extension $file, $type) Implements hook_system_info_alter(). File core/modules/system/system.module, line 1155 Configuration system that lets administrators modify the workings of the site. Code function system_system_info_alter(&$info, Extension $file, $type) { // Remove page-top and page-bottom from the blocks UI since they are reserved for // modules to populate from outside the blocks system. if ($type == 'theme') { $info['regions_hidden'

system_theme

system_theme() Implements hook_theme(). File core/modules/system/system.module, line 163 Configuration system that lets administrators modify the workings of the site. Code function system_theme() { return array_merge(drupal_common_theme(), array( // Normally theme suggestion templates are only picked up when they are in // themes. We explicitly define theme suggestions here so that the block // templates in core/modules/system/templates are picked up. 'block__system_brandin

system_retrieve_file

system_retrieve_file($url, $destination = NULL, $managed = FALSE, $replace = FILE_EXISTS_RENAME) Attempts to get a file using Guzzle HTTP client and to store it locally. Parameters string $url: The URL of the file to grab. string $destination: Stream wrapper URI specifying where the file should be placed. If a directory path is provided, the file is saved into that directory under its original name. If the path contains a filename as well, that one will be used instead. If this value is omitte