You are here

public function LingotekProfile::setBusinessUnitPermission in Lingotek Translation 3.3.x

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

Sets the Permission setting for whether or not to use the Business Unit.

Parameters

bool $use_business_unit: Flag indicating if we want to use a Business Unit.

Return value

$this

Overrides LingotekIntelligenceMetadataInterface::setBusinessUnitPermission

File

src/Entity/LingotekProfile.php, line 445

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

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