_color_hue2rgb

_color_hue2rgb($m1, $m2, $h) Helper function for _color_hsl2rgb(). File core/modules/color/color.module, line 797 Allows users to change the color scheme of themes. Code function _color_hue2rgb($m1, $m2, $h) { $h = ($h < 0) ? $h + 1 : (($h > 1) ? $h - 1 : $h); if ($h * 6 < 1) { return $m1 + ($m2 - $m1) * $h * 6; } if ($h * 2 < 1) { return $m2; } if ($h * 3 < 2) { return $m1 + ($m2 - $m1) * (0.66666 - $h) * 6; } return $m1; }

_batch_shutdown

_batch_shutdown() Shutdown function: Stores the current batch data for the next request. See also _batch_page() drupal_register_shutdown_function() File core/includes/batch.inc, line 515 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_shutdown() { if ($batch = batch_get()) { \Drupal::service('batch.storage')->update($batch); } }

_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), ); }

_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_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_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_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_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() {

_batch_current_set

&_batch_current_set() Returns the batch set being currently processed. File core/includes/batch.inc, line 363 Batch processing API for processes to run in multiple HTTP requests. Code function &_batch_current_set() { $batch = &batch_get(); return $batch['sets'][$batch['current_set']]; }