ContentEntityBase::validate

public ContentEntityBase::validate() Validates the currently set values. Return value \Drupal\Core\Entity\EntityConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded. Overrides FieldableEntityInterface::validate File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 371 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function validate() {

ContentEntityBase::uuid

public ContentEntityBase::uuid() Gets the entity UUID (Universally Unique Identifier). The UUID is guaranteed to be unique and can be used to identify an entity across multiple systems. Return value string|null The UUID of the entity, or NULL if the entity does not have one. Overrides Entity::uuid File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 436 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity C

ContentEntityBase::updateOriginalValues

public ContentEntityBase::updateOriginalValues() Updates the original values with the interim changes. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 872 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function updateOriginalValues() { if (!$this->fields) { return; } foreach ($this->getFieldDefinitions() as $name => $definition) { if (!$definition->isComputed(

ContentEntityBase::updateFieldLangcodes

protected ContentEntityBase::updateFieldLangcodes($langcode) Updates language for already instantiated fields. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 654 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code protected function updateFieldLangcodes($langcode) { foreach ($this->fields as $name => $items) { if (!empty($items[LanguageInterface::LANGCODE_DEFAULT])) { $items[Lan

ContentEntityBase::TRANSLATION_REMOVED

Status code identifying a removed translation. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 24 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code const TRANSLATION_REMOVED = 0;

ContentEntityBase::TRANSLATION_EXISTING

Status code identifying an existing translation. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 29 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code const TRANSLATION_EXISTING = 1;

ContentEntityBase::TRANSLATION_CREATED

Status code identifying a newly created translation. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 34 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code const TRANSLATION_CREATED = 2;

ContentEntityBase::toArray

public ContentEntityBase::toArray() Gets an array of all property values. Return value mixed[] An array of property values, keyed by property name. Overrides Entity::toArray File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 574 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function toArray() { $values = array(); foreach ($this->getFields() as $name => $property) { $values

ContentEntityBase::setValidationRequired

public ContentEntityBase::setValidationRequired($required) Sets whether entity validation is required before saving the entity. Parameters bool $required: TRUE if validation is required, FALSE otherwise. Return value $this Overrides FieldableEntityInterface::setValidationRequired File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 387 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public functi

ContentEntityBase::setRevisionTranslationAffected

public ContentEntityBase::setRevisionTranslationAffected($affected) Marks the current revision translation as affected. Parameters bool|null $affected: The flag value. A NULL value can be specified to reset the current value and make sure a new value will be computed by the system. Return value $this Overrides ContentEntityInterface::setRevisionTranslationAffected File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 313 Class ContentEntityBase Implements Entity Field API specific