_color_hsl2rgb

_color_hsl2rgb($hsl) Converts an HSL triplet into RGB. File core/modules/color/color.module, line 780 Allows users to change the color scheme of themes. Code function _color_hsl2rgb($hsl) { $h = $hsl[0]; $s = $hsl[1]; $l = $hsl[2]; $m2 = ($l <= 0.5) ? $l * ($s + 1) : $l + $s - $l * $s; $m1 = $l * 2 - $m2; return array( _color_hue2rgb($m1, $m2, $h + 0.33333), _color_hue2rgb($m1, $m2, $h), _color_hue2rgb($m1, $m2, $h - 0.33333), ); }

_color_pack

_color_pack($rgb, $normalize = FALSE) Converts an RGB triplet to a hex color. File core/modules/color/color.module, line 768 Allows users to change the color scheme of themes. Code function _color_pack($rgb, $normalize = FALSE) { $out = 0; foreach ($rgb as $k => $v) { $out |= (($v * ($normalize ? 255 : 1)) << (16 - $k * 8)); } return '#' . str_pad(dechex($out), 6, 0, STR_PAD_LEFT); }

_ckeditor_theme_css

_ckeditor_theme_css($theme = NULL) Retrieves the default theme's CKEditor stylesheets. Themes may specify iframe-specific CSS files for use with CKEditor by including a "ckeditor_stylesheets" key in their .info.yml file. ckeditor_stylesheets: - css/ckeditor-iframe.css File core/modules/ckeditor/ckeditor.module, line 81 Provides integration with the CKEditor WYSIWYG editor. Code function _ckeditor_theme_css($theme = NULL) { $css = array(); if (!isset($theme)) { $theme = \Drupal::con

_batch_populate_queue

_batch_populate_queue(&$batch, $set_id) Populates a job queue with the operations of a batch set. Depending on whether the batch is progressive or not, the Drupal\Core\Queue\Batch or Drupal\Core\Queue\BatchMemory handler classes will be used. The name and class of the queue are added by reference to the batch set. Parameters $batch: The batch array. $set_id: The id of the set to process. Related topics Batch operations Creates and processes batch operations. File core/includes/form.inc,

_batch_process

_batch_process() Processes sets in a batch. If the batch was marked for progressive execution (default), this executes as many operations in batch sets until an execution time of 1 second has been exceeded. It will continue with the next operation of the same batch set in the next request. Return value array An array containing a completion value (in percent) and a status message. File core/includes/batch.inc, line 209 Batch processing API for processes to run in multiple HTTP requests. Code

_batch_queue

_batch_queue($batch_set) Returns a queue object for a batch set. Parameters $batch_set: The batch set. Return value The queue object. Related topics Batch operations Creates and processes batch operations. File core/includes/form.inc, line 932 Functions for form and batch generation and processing. Code function _batch_queue($batch_set) { static $queues; if (!isset($queues)) { $queues = array(); } if (isset($batch_set['queue'])) { $name = $batch_set['queue']['name'];

_batch_progress_page

_batch_progress_page() Outputs a batch processing page. See also _batch_process() File core/includes/batch.inc, line 105 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_progress_page() { $batch = &batch_get(); $current_set = _batch_current_set(); $new_op = 'do_nojs'; if (!isset($batch['running'])) { // This is the first page so we return some output immediately. $percentage = 0; $message = $current_set['init_message'];

_batch_page

_batch_page(Request $request) Renders the batch processing page based on the current state of the batch. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. See also _batch_shutdown() File core/includes/batch.inc, line 34 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_page(Request $request) { $batch = &batch_get(); if (!($request_id = $request->query->get('id'))) { return FALSE; } // Re

_batch_next_set

_batch_next_set() Retrieves the next set in a batch. If there is a subsequent set in this batch, assign it as the new set to process and execute its form submit handler (if defined), which may add further sets to this batch. Return value true|null TRUE if a subsequent set was found in the batch; no value will be returned if no subsequent set was found. File core/includes/batch.inc, line 379 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_next_set() {

_aggregator_allowed_tags

_aggregator_allowed_tags() Gets the list of allowed tags. @internal Return value array The list of allowed tags. File core/modules/aggregator/aggregator.module, line 171 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function _aggregator_allowed_tags() { return preg_split('/\s+|<|>/', \Drupal::config('aggregator.settings')->get('items.allowed_html'), -1, PREG_SPLIT_NO_EMPTY); }