You are here

public static function LingotekNode::load in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::load()
  2. 7.3 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::load()

Factory method for getting a loaded LingotekNode object.

Parameters

object $node: A Drupal node.

Return value

LingotekNode A loaded LingotekNode object.

8 calls to LingotekNode::load()
LingotekNode::loadById in lib/Drupal/lingotek/LingotekNode.php
Factory method for getting a loaded LingotekNode object.
lingotek_advanced_parsing_update_node in ./lingotek.module
Processing callback for the advanced parsing update batch operation.
lingotek_advanced_parsing_upgrade_form_submit in ./lingotek.page.inc
Submit handler for the lingotek_advanced_parsing_upgrade_form form.
lingotek_content_push_form_submit in ./lingotek.module
Submit handler for the lingotek_content_push_form form.
lingotek_push_form_submit in ./lingotek.page.inc
Submit handler for the lingotek_push_form form.

... See full list

File

lib/Drupal/lingotek/LingotekNode.php, line 73
Defines LingotekNode.

Class

LingotekNode
A class wrapper for Lingotek-specific behavior on nodes.

Code

public static function load($node) {
  $node = new LingotekNode($node);
  $node
    ->setApi(LingotekApi::instance());
  return $node;
}