You are here

public function LingotekProfile::setRegionPermission in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  2. 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  3. 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  4. 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  5. 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  6. 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  7. 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  8. 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  9. 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()
  10. 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setRegionPermission()

Sets the Permission setting for whether or not to include the Region.

Parameters

bool $use_region: Flag indicating if we want to indicate the Region.

Return value

$this

Overrides LingotekIntelligenceMetadataInterface::setRegionPermission

File

src/Entity/LingotekProfile.php, line 612

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

public function setRegionPermission($use_region) {
  $this->intelligence_metadata['use_region'] = $use_region;
  return $this;
}