Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Create the node reaction for loading nodes.
Pseudo Code for overrides the node load controller
class CSINodeController extends NodeController {
public function load($ids = array(), $conditions = array()) {
// If not loading a specific revision, look for and load a revision matching
// the currently active revision tag.
if (empty($conditions[$this->revisionKey]) &&
!path_is_admin(current_path()) &&
($site_tag = elc_workflow_get_tag())) {
// Use the Manager to get the override information for this node
}
return parent::load($ids, $conditions);
}
}
Comment | File | Size | Author |
---|---|---|---|
#5 | 1676884.patch | 59.76 KB | e2thex |
#5 | 1676884-from-1669878.diff | 6.03 KB | e2thex |
Comments
Comment #1
indytechcook CreditAttribution: indytechcook commentedComment #2
indytechcook CreditAttribution: indytechcook commentedComment #3
indytechcook CreditAttribution: indytechcook commentedComment #4
e2thex CreditAttribution: e2thex commentedThis is in branch 1676884 branched from 1669878
Comment #5
e2thex CreditAttribution: e2thex commentedAdded a class EntityLoadReaction but am only using it in the node load reaction
Comment #6
indytechcook CreditAttribution: indytechcook commentedMerged
Comment #8
mynet sohbet CreditAttribution: mynet sohbet commentedvery nice work really like to thank everyone who contributed to