Commit 54014181 authored by catch's avatar catch
Browse files

feat: #3557181...

feat: #3557181 \Drupal\content_translation\Hook\ContentTranslationHooks::viewsDataAlter() causes deprecations on PHP 8.5

By: @alexpott
parent 1dc336ea
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -340,7 +340,7 @@ public function viewsDataAlter(array &$data): void {
    $manager = \Drupal::service('content_translation.manager');
    foreach ($entity_types as $entity_type_id => $entity_type) {
      $base_table = $entity_type->getBaseTable();
      if (isset($data[$base_table]) && $entity_type->hasLinkTemplate('drupal:content-translation-overview') && $manager->isEnabled($entity_type_id)) {
      if (isset($base_table, $data[$base_table]) && $entity_type->hasLinkTemplate('drupal:content-translation-overview') && $manager->isEnabled($entity_type_id)) {
        $t_arguments = ['@entity_type_label' => $entity_type->getLabel()];
        $data[$base_table]['translation_link'] = [
          'field' => [