protected function ContentTranslationUITestBase::getChangedFieldName in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getChangedFieldName()
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase::getChangedFieldName()
Returns the name of the field that implements the changed timestamp.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity being tested.
Return value
string The field name.
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationUITestBase.php, line 507
Class
- ContentTranslationUITestBase
- Tests the Content Translation UI.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function getChangedFieldName($entity) {
return $entity
->hasField('content_translation_changed') ? 'content_translation_changed' : 'changed';
}