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 60
- Contains \Drupal\Core\Entity\Type\EntityTranslation.
Class
- EntityTranslation
- Allows accessing and updating translated entity fields.
Namespace
Drupal\Core\Entity\Field\Type
Code
public function setStrictMode($strict = TRUE) {
$this->strict = $strict;
}