You are here

public function LingotekProfile::setContactEmailForAuthorPermission in Lingotek Translation 3.7.x

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

Sets the Permission setting for whether or not to use the Contact Email as the author's email.

Parameters

bool $use_contact_email_for_author: Flag indicating if we want to use contact email as author if author is not set.

Return value

$this

Overrides LingotekIntelligenceMetadataInterface::setContactEmailForAuthorPermission

File

src/Entity/LingotekProfile.php, line 447

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

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