_color_save_stylesheet

_color_save_stylesheet($file, $style, &$paths) Saves the rewritten stylesheet to disk. File core/modules/color/color.module, line 582 Allows users to change the color scheme of themes. Code function _color_save_stylesheet($file, $style, &$paths) { $filepath = file_unmanaged_save_data($style, $file, FILE_EXISTS_REPLACE); $paths['files'][] = $filepath; // Set standard file permissions for webserver-generated files. drupal_chmod($file); }

_color_shift

_color_shift($given, $ref1, $ref2, $target) Shifts a given color, using a reference pair and a target blend color. Note: this function is significantly different from the JS version, as it is written to match the blended images perfectly. Constraint: if (ref2 == target + (ref1 - target) * delta) for some fraction delta then (return == target + (given - target) * delta). Loose constraint: Preserve relative positions in saturation and luminance space. File core/modules/color/color.module, line 68

_color_unpack

_color_unpack($hex, $normalize = FALSE) Converts a hex color into an RGB triplet. File core/modules/color/color.module, line 753 Allows users to change the color scheme of themes. Code function _color_unpack($hex, $normalize = FALSE) { if (strlen($hex) == 4) { $hex = $hex[1] . $hex[1] . $hex[2] . $hex[2] . $hex[3] . $hex[3]; } $c = hexdec($hex); for ($i = 16; $i >= 0; $i -= 8) { $out[] = (($c >> $i) & 0xFF) / ($normalize ? 255 : 1); } return $out; }

_comment_entity_uses_integer_id

_comment_entity_uses_integer_id($entity_type_id) Determines if an entity type is using an integer-based ID definition. Parameters string $entity_type_id: The ID the represents the entity type. Return value bool Returns TRUE if the entity type has an integer-based ID definition and FALSE otherwise. File core/modules/comment/comment.module, line 411 Enables users to comment on published content. Code function _comment_entity_uses_integer_id($entity_type_id) { $entity_type = \Drupal::entityM

_content_moderation_views_data_object

_content_moderation_views_data_object() Creates a ViewsData object to respond to views hooks. Return value \Drupal\content_moderation\ViewsData The content moderation ViewsData object. File core/modules/content_moderation/content_moderation.views.inc, line 32 Provide views data for content_moderation.module. Code function _content_moderation_views_data_object() { return new ViewsData( \Drupal::service('entity_type.manager'), \Drupal::service('content_moderation.moderation_information'

_content_translation_form_language_content_settings_form_alter

_content_translation_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) (proxied) Implements hook_form_FORM_ID_alter(). File core/modules/content_translation/content_translation.admin.inc, line 79 The content translation administration forms. Code function _content_translation_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) { // Inject into the content language settings the translation settings if the //

_content_translation_is_field_translatability_configurable

_content_translation_is_field_translatability_configurable(EntityTypeInterface $entity_type, FieldStorageDefinitionInterface $definition) Checks whether translatability should be configurable for a field. @internal Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Field\FieldStorageDefinitionInterface $definition: The field storage definition. Return value bool TRUE if field translatability can be configured, FALSE otherwise. File core/m

_content_translation_preprocess_language_content_settings_table

_content_translation_preprocess_language_content_settings_table(&$variables) (proxied) Implements hook_preprocess_HOOK(); File core/modules/content_translation/content_translation.admin.inc, line 170 The content translation administration forms. Code function _content_translation_preprocess_language_content_settings_table(&$variables) { // Alter the 'build' variable injecting the translation settings if the user // has the required permission. if (!\Drupal::currentUser()->has

_contextual_id_to_links

_contextual_id_to_links($id) Unserializes the result of _contextual_links_to_id(). Parameters string $id: A serialized representation of a #contextual_links property value array. Return value array The value for a #contextual_links property. See also _contextual_links_to_id File core/modules/contextual/contextual.module, line 201 Adds contextual links to perform actions related to elements on a page. Code function _contextual_id_to_links($id) { $contextual_links = array(); $contexts =

_contextual_links_to_id

_contextual_links_to_id($contextual_links) Serializes #contextual_links property value array to a string. Examples: node:node=1:langcode=en views_ui_edit:view=frontpage:location=page&view_name=frontpage&view_display_id=page_1&langcode=en menu:menu=tools:langcode=en|block:block=bartik.tools:langcode=en So, expressed in a pattern: <group>:<route parameters>:<metadata> The route parameters and options are encoded as query strings. Parameters array $contextual_links