Commit 8fa982af authored by webchick's avatar webchick

Issue #1896922 by Albert Volkman: Fixed Remove NodeController reference.

parent 290ceb42
......@@ -563,12 +563,13 @@ function hook_node_create(\Drupal\node\Plugin\Core\Entity\Node $node) {
* for all available nodes should be loaded in a single query where possible.
*
* This hook is invoked during node loading, which is handled by entity_load(),
* via classes NodeController and Drupal\Core\Entity\DatabaseStorageController.
* After the node information is read from the database or the entity cache,
* hook_load() is invoked on the node's content type module, then
* field_attach_load_revision() or field_attach_load() is called, then
* hook_entity_load() is invoked on all implementing modules, and finally
* hook_node_load() is invoked on all implementing modules.
* via classes Drupal\node\NodeStorageController and
* Drupal\Core\Entity\DatabaseStorageController. After the node information is
* read from the database or the entity cache, hook_load() is invoked on the
* node's content type module, then field_attach_load_revision() or
* field_attach_load() is called, then hook_entity_load() is invoked on all
* implementing modules, and finally hook_node_load() is invoked on all
* implementing modules.
*
* @param $nodes
* An array of the nodes being loaded, keyed by nid.
......@@ -1216,12 +1217,13 @@ function hook_insert(Drupal\node\Node $node) {
* (use hook_node_load() to respond to all node loads).
*
* This hook is invoked during node loading, which is handled by entity_load(),
* via classes NodeController and Drupal\Core\Entity\DatabaseStorageController.
* After the node information is read from the database or the entity cache,
* hook_load() is invoked on the node's content type module, then
* field_attach_node_revision() or field_attach_load() is called, then
* hook_entity_load() is invoked on all implementing modules, and finally
* hook_node_load() is invoked on all implementing modules.
* via classes Drupal\node\NodeStorageController and
* Drupal\Core\Entity\DatabaseStorageController. After the node information is
* read from the database or the entity cache, hook_load() is invoked on the
* node's content type module, then field_attach_node_revision() or
* field_attach_load() is called, then hook_entity_load() is invoked on all
* implementing modules, and finally hook_node_load() is invoked on all
* implementing modules.
*
* This hook should only be used to add information that is not in the node or
* node revisions table, not to replace information that is in these tables
......
......@@ -214,7 +214,8 @@ function shortcut_set_customize($form, &$form_state, $shortcut_set) {
$form['shortcuts']['links'][$mlid]['name']['#markup'] = l($link['link_title'], $link['link_path']);
$form['shortcuts']['links'][$mlid]['weight'] = array(
'#type' => 'weight',
'#title' => t('Weight'),
'#title' => t('Weight for @title', array('@title' => $link['link_title'])),
'#title_display' => 'invisible',
'#delta' => 50,
'#default_value' => $link['weight'],
'#attributes' => array('class' => array('shortcut-weight')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment