public function ContextAwareInterface::setName

Sets the name of a property or item.

This method is supposed to be used by the parental data structure in order to provide appropriate context only.

Parameters

string $name: The name to set for a property or item.

See also

ContextAwareInterface::getName()

6 methods override ContextAwareInterface::setName()
EntityTranslation::setName in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php
Implements ContextAwareInterface::setName().
EntityWrapper::setName in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements ContextAwareInterface::setName().
Field::setName in drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php
Implements ContextAwareInterface::setName().
FieldItemBase::setName in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Implements ContextAwareInterface::setName().
Language::setName in drupal/core/lib/Drupal/Core/TypedData/Type/Language.php
Implements ContextAwareInterface::setName().

... See full list

File

drupal/core/lib/Drupal/Core/TypedData/ContextAwareInterface.php, line 36
Definition of Drupal\Core\TypedData\ContextAwareInterface.

Class

ContextAwareInterface
Interface for context aware data.

Namespace

Drupal\Core\TypedData

Code

public function setName($name);