function TranslationString::setCustomized

Same name in other branches
  1. 9 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::setCustomized()
  2. 8.9.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::setCustomized()
  3. 10 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::setCustomized()

Sets the string as customized / not customized.

Parameters

bool $customized: (optional) Whether the string is customized or not. Defaults to TRUE.

Return value

$this The called object.

File

core/modules/locale/src/TranslationString.php, line 64

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

public function setCustomized($customized = TRUE) {
    $this->customized = $customized ? LOCALE_CUSTOMIZED : LOCALE_NOT_CUSTOMIZED;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.