public function EntityTranslation::setName

Implements ContextAwareInterface::setName().

Overrides ContextAwareInterface::setName

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 86
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 setName($name) {

  // The name of the translation is the language code.
  $this->langcode = $name;
}