public static function LingotekNode::load in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::load()
- 7.4 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.
5 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_update_7200 in ./
lingotek.install
File
- lib/
Drupal/ lingotek/ LingotekNode.php, line 65 - 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;
}