diff -u b/src/Form/LingotekJobManagementContentEntitiesForm.php b/src/Form/LingotekJobManagementContentEntitiesForm.php --- b/src/Form/LingotekJobManagementContentEntitiesForm.php +++ b/src/Form/LingotekJobManagementContentEntitiesForm.php @@ -33,7 +33,8 @@ protected function getFilteredEntities() { $metadataStorage = $this->entityTypeManager->getStorage('lingotek_content_metadata'); $entity_query = $metadataStorage->getQuery(); - $entity_query->condition('job_id', $this->jobId); + $entity_query->condition('job_id', + $this->jobId); $ids = $entity_query->accessCheck()->execute(); /** @var \Drupal\lingotek\Entity\LingotekContentMetadata[] $metadatas */ diff -u b/src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php b/src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php --- b/src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php +++ b/src/Plugin/RelatedEntitiesDetector/EditorDetectorBase.php @@ -99,9 +99,9 @@ $field_type = $field_definitions[$k]->getType(); if (in_array($field_type, $this->fieldTypes)) { foreach ($entity->get($k) as $delta => $fieldData) { - $text = $fieldData->getValue(); + $text = $fieldData->value; if ($field_type === 'text_with_summary') { - $text .= $fieldData->get('summary')->getValue(); + $text .= $fieldData->summary; } $fieldTextEntities = $this->extractEntitiesFromText($text); foreach ($fieldTextEntities as $fieldTextEntityTypeUuid => $fieldTextEntityTypeId) { diff -u b/tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php b/tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php --- b/tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php +++ b/tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php @@ -29,7 +29,7 @@ ]); // Create a locale outside of Lingotek dashboard. - ConfigurableLanguage::create(['id' => 'de-at', 'name' => 'German (AT)'])->save(); + ConfigurableLanguage::create(['id' => 'de-at', 'label' => 'German (AT)'])->save(); // Add locales. ConfigurableLanguage::createFromLangcode('es')->setThirdPartySetting('lingotek', 'locale', 'es_AR')->save(); diff -u b/tests/src/Functional/LingotekDashboardTest.php b/tests/src/Functional/LingotekDashboardTest.php --- b/tests/src/Functional/LingotekDashboardTest.php +++ b/tests/src/Functional/LingotekDashboardTest.php @@ -627,7 +627,7 @@ $language = ConfigurableLanguage::create([ 'id' => 'en-hk', - 'name' => 'English (Hong-Kong)', + 'label' => 'English (Hong-Kong)', ]); $language->setThirdPartySetting('lingotek', 'locale', ''); $language->save(); diff -u b/tests/src/Functional/LingotekNodeBulkLocaleTranslationTest.php b/tests/src/Functional/LingotekNodeBulkLocaleTranslationTest.php --- b/tests/src/Functional/LingotekNodeBulkLocaleTranslationTest.php +++ b/tests/src/Functional/LingotekNodeBulkLocaleTranslationTest.php @@ -29,7 +29,7 @@ parent::setUp(); // Create a locale outside of Lingotek dashboard. - ConfigurableLanguage::create(['id' => 'de-at', 'name' => 'German (AT)'])->save(); + ConfigurableLanguage::create(['id' => 'de-at', 'label' => 'German (AT)'])->save(); // Create Article node types. $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); only in patch2: unchanged: --- a/src/Controller/LingotekNotificationController.php +++ b/src/Controller/LingotekNotificationController.php @@ -572,9 +572,9 @@ class LingotekNotificationController extends LingotekControllerBase { 'messages' => $messages, ]; - $response = CacheableJsonResponse::create($response, $http_status_code) - ->setMaxAge(0) - ->setSharedMaxAge(0); + $response = new CacheableJsonResponse($response, $http_status_code); + $response->setMaxAge(0); + $response->setSharedMaxAge(0); $response->getCacheableMetadata()->addCacheContexts(['url.query_args']); return $response; }