_node_access_rebuild_batch_finished

_node_access_rebuild_batch_finished($success, $results, $operations) Implements callback_batch_finished(). Performs post-processing for node_access_rebuild(). Parameters bool $success: A boolean indicating whether the re-build process has completed. array $results: An array of results information. array $operations: An array of function calls (not used in this function). Related topics Node access rights The node access system determines who can do what to which nodes. File core/modules/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

_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_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_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_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_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_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_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_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*\+\