protected function ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck()
Returns an array of field names to skip in ::hasTranslationChanges.
Return value
array An array of field names.
2 calls to ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck()
- ContentEntityBase::hasTranslationChanges in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Determines if the current translation of the entity has unsaved changes.
- ContentModerationState::getFieldsToSkipFromTranslationChangesCheck in core/
modules/ content_moderation/ src/ Entity/ ContentModerationState.php - Returns an array of field names to skip in ::hasTranslationChanges.
1 method overrides ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck()
- ContentModerationState::getFieldsToSkipFromTranslationChangesCheck in core/
modules/ content_moderation/ src/ Entity/ ContentModerationState.php - Returns an array of field names to skip in ::hasTranslationChanges.
File
- core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php, line 1384
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
protected function getFieldsToSkipFromTranslationChangesCheck() {
$bundle = $this
->bundle();
if (!isset(static::$fieldsToSkipFromTranslationChangesCheck[$this->entityTypeId][$bundle])) {
static::$fieldsToSkipFromTranslationChangesCheck[$this->entityTypeId][$bundle] = $this
->traitGetFieldsToSkipFromTranslationChangesCheck($this);
}
return static::$fieldsToSkipFromTranslationChangesCheck[$this->entityTypeId][$bundle];
}