table.html.twig

Default theme implementation to display a table. Available variables: attributes: HTML attributes to apply to the <table> tag. caption: A localized string for the <caption> tag. colgroups: Column groups. Each group contains the following properties: attributes: HTML attributes to apply to the <col> tag. Note: Drupal currently supports only one table header row, see https://www.drupal.org/node/893530 and http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_tab

Table

Provides a render element for a table. Note: Although this extends FormElement, it can be used outside the context of a form. Properties: #header: An array of table header labels. #rows: An array of the rows to be displayed. Each row is either an array of cell contents or an array of properties as described in table.html.twig Alternatively specify the data for the table as child elements of the table element. Table elements would contain rows elements that would in turn contain column element

Table::getInfo

public Table::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Table.php, line 65 Class Table Provides a render element for a table. Namespace Drupal\Core\Render\Element Code public function getInf

system_user_timezone

system_user_timezone(&$form, FormStateInterface $form_state) Add the time zone field to the user edit and register forms. File core/modules/system/system.module, line 800 Configuration system that lets administrators modify the workings of the site. Code function system_user_timezone(&$form, FormStateInterface $form_state) { $user = \Drupal::currentUser(); $account = $form_state->getFormObject()->getEntity(); $form['timezone'] = array( '#type' => 'details', '#t

t

t($string, array $args = array(), array $options = array()) Translates a string to the current language or to a given language. In order for strings to be localized, make them available in one of the ways supported by the Localization API. When possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise create a new \Drupal\Core\StringTranslation\TranslatableMarkup object directly. See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for impo

system_user_presave

system_user_presave(UserInterface $account) Implements hook_ENTITY_TYPE_presave() for user entities. File core/modules/system/system.module, line 779 Configuration system that lets administrators modify the workings of the site. Code function system_user_presave(UserInterface $account) { $config = \Drupal::config('system.date'); if ($config->get('timezone.user.configurable') && !$account->getTimeZone() && !$config->get('timezone.user.default')) { $account->

system_updater_info

system_updater_info() Implements hook_updater_info(). File core/modules/system/system.module, line 499 Configuration system that lets administrators modify the workings of the site. Code function system_updater_info() { return array( 'module' => array( 'class' => 'Drupal\Core\Updater\Module', 'name' => t('Update modules'), 'weight' => 0, ), 'theme' => array( 'class' => 'Drupal\Core\Updater\Theme', 'name' => t('Update themes'),

system_time_zones

system_time_zones($blank = NULL) Generate an array of time zones and their local time&date. Parameters $blank: If evaluates true, prepend an empty time zone option to the array. File core/modules/system/system.module, line 1325 Configuration system that lets administrators modify the workings of the site. Code function system_time_zones($blank = NULL) { $zonelist = timezone_identifiers_list(); $zones = $blank ? array('' => t('- None selected -')) : array(); foreach ($zonelist as

system_theme_suggestions_maintenance_page

system_theme_suggestions_maintenance_page(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/system/system.module, line 279 Configuration system that lets administrators modify the workings of the site. Code function system_theme_suggestions_maintenance_page(array $variables) { $suggestions = array(); // Dead databases will show error messages so supplying this template will // allow themers to override the page and the content completely. $offline = define

system_theme_suggestions_region

system_theme_suggestions_region(array $variables) Implements hook_theme_suggestions_HOOK(). File core/modules/system/system.module, line 302 Configuration system that lets administrators modify the workings of the site. Code function system_theme_suggestions_region(array $variables) { $suggestions = array(); if (!empty($variables['elements']['#region'])) { $suggestions[] = 'region__' . $variables['elements']['#region']; } return $suggestions; }