ContentEntityBase::label

public ContentEntityBase::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides Entity::label File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 1046 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function label() { $label = NULL; $entity_type = $this->getEntityType(); if (($label_callback = $entit

ContentEntityBase::isValidationRequired

public ContentEntityBase::isValidationRequired() Checks whether entity validation is required before saving the entity. Return value bool TRUE if validation is required, FALSE if not. Overrides FieldableEntityInterface::isValidationRequired File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 380 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isValidationRequired() { return (boo

ContentEntityBase::isTranslatable

public ContentEntityBase::isTranslatable() Returns the translation support status. Return value bool TRUE if the object has translation support enabled. Overrides TranslatableInterface::isTranslatable File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 338 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isTranslatable() { // Check that the bundle is translatable, the entity has

ContentEntityBase::isRevisionTranslationAffected

public ContentEntityBase::isRevisionTranslationAffected() Checks whether the current translation is affected by the current revision. Return value bool TRUE if the entity object is affected by the current revision, FALSE otherwise. Overrides ContentEntityInterface::isRevisionTranslationAffected File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 305 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code

ContentEntityBase::isNewTranslation

public ContentEntityBase::isNewTranslation() Checks whether the translation is new. Return value bool TRUE if the translation is new, FALSE otherwise. Overrides TranslatableInterface::isNewTranslation File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 811 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isNewTranslation() { return $this->translations[$this->activeLangcode]

ContentEntityBase::isNewRevision

public ContentEntityBase::isNewRevision() Determines whether a new revision should be created on save. Return value bool TRUE if a new revision should be created. Overrides RevisionableInterface::isNewRevision See also \Drupal\Core\Entity\EntityInterface::setNewRevision() File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 287 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isNew

ContentEntityBase::isDefaultTranslation

public ContentEntityBase::isDefaultTranslation() Checks whether the translation is the default one. Return value bool TRUE if the translation is the default one, FALSE otherwise. Overrides TranslatableInterface::isDefaultTranslation File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 324 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isDefaultTranslation() { return $this->ac

ContentEntityBase::isDefaultRevision

public ContentEntityBase::isDefaultRevision($new_value = NULL) Checks if this entity is the default revision. Parameters bool $new_value: (optional) A Boolean to (re)set the isDefaultRevision flag. Return value bool TRUE if the entity is the default revision, FALSE otherwise. If $new_value was passed, the previous value is returned. Overrides RevisionableInterface::isDefaultRevision File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 294 Class ContentEntityBase Implements Entity

ContentEntityBase::initializeTranslation

protected ContentEntityBase::initializeTranslation($langcode) Instantiates a translation object for an existing translation. The translated entity will be a clone of the current entity with the specified $langcode. All translations share the same field data structures to ensure that all of them deal with fresh data. Parameters string $langcode: The language code for the requested translation. Return value \Drupal\Core\Entity\EntityInterface The translation object. The content properties of th

ContentEntityBase::id

public ContentEntityBase::id() Gets the identifier. Return value string|int|null The entity identifier, or NULL if the object does not yet have an identifier. Overrides Entity::id File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 422 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function id() { return $this->getEntityKey('id'); }