protected function ContentEntityChangedTest::getRevisionTranslationAffectedFlag in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php \Drupal\KernelTests\Core\Entity\ContentEntityChangedTest::getRevisionTranslationAffectedFlag()
- 9 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php \Drupal\KernelTests\Core\Entity\ContentEntityChangedTest::getRevisionTranslationAffectedFlag()
Retrieves the revision translation affected flag value.
Parameters
\Drupal\entity_test\Entity\EntityTestMulRevChanged $entity: The entity object to be checked.
Return value
bool The flag value.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityChangedTest.php, line 484
Class
- ContentEntityChangedTest
- Tests basic EntityChangedInterface functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function getRevisionTranslationAffectedFlag(EntityTestMulRevChanged $entity) {
$query = $this->mulRevChangedStorage
->getQuery()
->accessCheck(FALSE);
$ids = $query
->condition('revision_translation_affected', 1, '=', $entity
->language()
->getId())
->execute();
$id = reset($ids);
return (bool) ($id == $entity
->id());
}