_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

_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

_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

_node_access_rebuild_batch_operation

_node_access_rebuild_batch_operation(&$context) Implements callback_batch_operation(). Performs batch operation for node_access_rebuild(). This is a multistep operation: we go through all nodes by packs of 20. The batch processing engine interrupts processing and sends progress feedback after 1 second execution time. Parameters array $context: An array of contextual key/value information for rebuild batch process. Related topics Node access rights The node access system determines who can

_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

_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

_options_values_in_use

_options_values_in_use($entity_type, $field_name, $values) Checks if a list of values are being used in actual field values. File core/modules/options/options.module, line 123 Defines selection, check box and radio button widgets for text and numeric fields. Code function _options_values_in_use($entity_type, $field_name, $values) { if ($values) { $factory = \Drupal::service('entity.query'); $result = $factory->get($entity_type) ->condition($field_name . '.value', $values

_rdf_set_field_rel_attribute

_rdf_set_field_rel_attribute(&$variables) Transforms the field property attribute into a rel attribute. File core/modules/rdf/rdf.module, line 286 Enables semantically enriched output for Drupal sites in the form of RDFa. Code function _rdf_set_field_rel_attribute(&$variables) { // Swap the regular field property attribute and use the rel attribute // instead so that it plays well with the RDFa markup when only a link is // present in the field output, for example in the case of

_responsive_image_image_style_url

_responsive_image_image_style_url($style_name, $path) Wrapper around image_style_url() so we can return an empty image. File core/modules/responsive_image/responsive_image.module, line 492 Responsive image display formatter for image fields. Code function _responsive_image_image_style_url($style_name, $path) { if ($style_name == RESPONSIVE_IMAGE_EMPTY_IMAGE) { // The smallest data URI for a 1px square transparent GIF image. // http://probablyprogramming.com/2009/03/15/the-tiniest-gi