You are here

public function LingotekProfile::setNodeBased in Lingotek Translation 7.7

File

lib/Drupal/lingotek/LingotekProfile.php, line 402
Defines LingotekProfile

Class

LingotekProfile
A class wrapper for Lingotek Profiles

Code

public function setNodeBased($active) {
  if ($active) {
    $this
      ->setAttribute('lingotek_nodes_translation_method', 'node');
  }
  else {
    $this
      ->deleteAttribute('lingotek_nodes_translation_method');
  }
}