function ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck()
- 10 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getFieldsToSkipFromTranslationChangesCheck()
- 11.x 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 - 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 1402
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];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.