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_cron

system_cron() Implements hook_cron(). Remove older rows from flood, batch cache and expirable keyvalue tables. File core/modules/system/system.module, line 1274 Configuration system that lets administrators modify the workings of the site. Code function system_cron() { // Clean up the flood. \Drupal::flood()->garbageCollection(); foreach (Cache::getBins() as $cache_backend) { $cache_backend->garbageCollection(); } // Clean up the expirable key value database store. if

system_default_region

system_default_region($theme) Gets the name of the default region for a given theme. Parameters $theme: The name of a theme. Return value A string that is the region name. File core/modules/system/system.module, line 1172 Configuration system that lets administrators modify the workings of the site. Code function system_default_region($theme) { $regions = array_keys(system_region_list($theme, REGIONS_VISIBLE)); return isset($regions[0]) ? $regions[0] : ''; }

system_check_directory

system_check_directory($form_element, FormStateInterface $form_state) Checks the existence of the directory specified in $form_element. This function is called from the system_settings form to check all core file directories (file_public_path, file_private_path, file_temporary_path). Parameters $form_element: The form element containing the name of the directory to check. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/modules/system/system.module, li

system_entity_type_build

system_entity_type_build(array &$entity_types) Implements hook_entity_type_build(). File core/modules/system/system.module, line 1405 Configuration system that lets administrators modify the workings of the site. Code function system_entity_type_build(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['date_format'] ->setFormClass('add', 'Drupal\system\Form\DateFormatAddForm') ->setFormClass('edit', 'Drupal\system\

system_filetransfer_info

system_filetransfer_info() Implements hook_filetransfer_info(). File core/modules/system/system.module, line 517 Configuration system that lets administrators modify the workings of the site. Code function system_filetransfer_info() { $backends = array(); // This is the default, will be available on most systems. if (function_exists('ftp_connect')) { $backends['ftp'] = array( 'title' => t('FTP'), 'class' => 'Drupal\Core\FileTransfer\FTP', 'weight' => 0,

system_form_alter

system_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_alter(). File core/modules/system/system.module, line 737 Configuration system that lets administrators modify the workings of the site. Code function system_form_alter(&$form, FormStateInterface $form_state) { // If the page that's being built is cacheable, set the 'immutable' flag, to // ensure that when the form is used, a new form build ID is generated when // appropriate, to prevent information d

system_form_user_form_alter

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

system_authorized_get_url

system_authorized_get_url(array $options = array()) Return the URL for the authorize.php script. Parameters array $options: Optional array of options to set on the \Drupal\Core\Url object. Return value \Drupal\Core\Url The full URL to authorize.php, using HTTPS if available. See also system_authorized_init() Related topics Authorized operations Functions to run operations with elevated privileges via authorize.php. File core/modules/system/system.module, line 449 Configuration system that

system_block_view_system_main_block_alter

system_block_view_system_main_block_alter(array &$build, BlockPluginInterface $block) Implements hook_block_view_BASE_BLOCK_ID_alter(). File core/modules/system/system.module, line 1420 Configuration system that lets administrators modify the workings of the site. Code function system_block_view_system_main_block_alter(array &$build, BlockPluginInterface $block) { // Contextual links on the system_main block would basically duplicate the // tabs/local tasks, so reduce the clutter.