_node_mass_update_batch_finished

_node_mass_update_batch_finished($success, $results, $operations) Implements callback_batch_finished(). Reports the 'finished' status of batch operation for node_mass_update(). Parameters bool $success: A boolean indicating whether the batch mass update operation successfully concluded. string[] $results: An array of rendered links to nodes updated via the batch mode process. array $operations: An array of function calls (not used in this function). See also _node_mass_update_batch_process()

_node_mass_update_batch_process

_node_mass_update_batch_process(array $nodes, array $updates, $langcode, $load, $revisions, &$context) Implements callback_batch_operation(). Executes a batch operation for node_mass_update(). Parameters array $nodes: An array of node IDs. array $updates: Associative array of updates. string $langcode: The language updates should be applied to. If none is specified all available languages are processed. bool $load: TRUE if $nodes contains an array of node IDs to be loaded, FALSE if it cont

_menu_link_content_update_path_alias

_menu_link_content_update_path_alias($path) Helper function to update plugin definition using internal scheme. Parameters string $path: The path alias. File core/modules/menu_link_content/menu_link_content.module, line 53 Allows administrators to create custom menu links. Code function _menu_link_content_update_path_alias($path) { /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); /** @var \Drupal

_locale_translation_prepare_project_list

_locale_translation_prepare_project_list($data, $type) Prepare module and theme data. Modify .info.yml file data before it is processed by \Drupal\Core\Utility\ProjectInfo->processInfoList(). In order for \Drupal\Core\Utility\ProjectInfo->processInfoList() to recognize a project, it requires the 'project' parameter in the .info.yml file data. Custom modules or themes can bring their own gettext translation file. To enable import of this file the module or theme defines "interface translat

_locale_translation_fetch_operations

_locale_translation_fetch_operations($projects, $langcodes, $options) Helper function to construct the batch operations to fetch translations. Parameters array $projects: Array of project names for which to check the state of translation files. Defaults to all translatable projects. array $langcodes: Array of language codes. Defaults to all translatable languages. array $options: Array of import options. Return value array Array of batch operations. File core/modules/locale/locale.fetch.inc,

_locale_translation_file_is_remote

_locale_translation_file_is_remote($uri) Determine if a file is a remote file. Parameters string $uri: The URI or URI pattern of the file. Return value bool TRUE if the $uri is a remote file. File core/modules/locale/locale.translation.inc, line 377 Common API for interface translation. Code function _locale_translation_file_is_remote($uri) { $scheme = file_uri_scheme($uri); if ($scheme) { return !drupal_realpath($scheme . '://'); } return FALSE; }

_locale_translation_batch_status_operations

_locale_translation_batch_status_operations($projects, $langcodes, $options = array()) Helper function to construct batch operations checking remote translation status. Parameters array $projects: Array of project names to be processed. array $langcodes: Array of language codes. array $options: Batch processing options. Return value array Array of batch operations. File core/modules/locale/locale.compare.inc, line 266 The API for comparing project translation status with available translation

_locale_translation_default_update_options

_locale_translation_default_update_options() Returns default import options for translation update. Return value array Array of translation import options. File core/modules/locale/locale.translation.inc, line 430 Common API for interface translation. Code function _locale_translation_default_update_options() { $config = \Drupal::config('locale.settings'); return array( 'customized' => LOCALE_NOT_CUSTOMIZED, 'overwrite_options' => array( 'not_customized' => $config

_locale_translation_source_compare

_locale_translation_source_compare($source1, $source2) Compare two update sources, looking for the newer one. The timestamp property of the source objects are used to determine which is the newer one. Parameters object $source1: Source object of the first translation source. object $source2: Source object of available update. Return value int "LOCALE_TRANSLATION_SOURCE_COMPARE_LT": $source1 < $source2 OR $source1 is missing. "LOCALE_TRANSLATION_SOURCE_COMPARE_EQ": $source1 == $source2 OR

_locale_strip_quotes

_locale_strip_quotes($string) Removes the quotes and string concatenations from the string. Parameters string $string: Single or double quoted strings, optionally concatenated by plus (+) sign. Return value string String with leading and trailing quotes removed. File core/modules/locale/locale.module, line 1116 Enables the translation of the user interface to languages other than English. Code function _locale_strip_quotes($string) { return implode('', preg_split('~(?<!\\\\)[\'"]\s*\+\