public function EntityTranslation::setStrictMode

Sets whether the entity translation acts in strict mode.

Parameters

boolean $strict: Whether the entity translation acts in strict mode.

See also

\Drupal\Core\TypedData\TranslatableInterface::getTranslation()

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 71
Definition of Drupal\Core\Entity\Type\EntityTranslation.

Class

EntityTranslation
Makes translated entity properties available via the Field API.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function setStrictMode($strict = TRUE) {
  $this->strict = $strict;
}