public function LingotekComment::contentUpdated in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.2 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::contentUpdated()
- 7.3 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::contentUpdated()
Event handler for updates to the comment's data.
File
- lib/
Drupal/ lingotek/ LingotekComment.php, line 145 - Defines LingotekComment.
Class
- LingotekComment
- A class wrapper for Lingotek-specific behavior on Comments.
Code
public function contentUpdated() {
$metadata = $this
->metadata();
if (empty($metadata['document_id'])) {
$this
->createLingotekDocument();
}
else {
$update_result = $this
->updateLingotekDocument();
}
}