_node_mass_update_helper

_node_mass_update_helper(NodeInterface $node, array $updates, $langcode = NULL) Updates individual nodes when fewer than 10 are queued. Parameters \Drupal\node\NodeInterface $node: A node to update. array $updates: Associative array of updates. string $langcode: (optional) The language updates should be applied to. If none is specified all available languages are processed. Return value \Drupal\node\NodeInterface An updated node object. See also node_mass_update() File core/modules/node/node

_menu_ui_node_save

_menu_ui_node_save(NodeInterface $node, array $values) Helper function to create or update a menu link for a node. Parameters \Drupal\node\NodeInterface $node: Node entity. array $values: Values for the menu link. File core/modules/menu_ui/menu_ui.module, line 137 Allows administrators to customize the site's navigation menus. Code function _menu_ui_node_save(NodeInterface $node, array $values) { /** @var \Drupal\menu_link_content\MenuLinkContentInterface $entity */ if (!empty($values['e

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

_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_refresh_configuration

_locale_refresh_configuration(array $langcodes, array $lids) Refreshes configuration after string translations have been updated. Parameters array $langcodes: Language codes for updated translations. array $lids: List of string identifiers that have been updated / created. File core/modules/locale/locale.module, line 1101 Enables the translation of the user interface to languages other than English. Code function _locale_refresh_configuration(array $langcodes, array $lids) { if ($lids &