Verified Commit 792e04e6 authored by Alberto Paderno's avatar Alberto Paderno Committed by Alberto Paderno
Browse files

Issue #3293454 by apaderno: Unused placeholders are passed to t()

parent 349a65a2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ public static function processEntityFieldSelect(&$element, FormStateInterface $f
        '#df_action' => 'field_selection',
        '#attributes' => [
          'autocomplete' => 'off',
        ]
        ],
      ];

      $element['field_name_reset'] = [
@@ -303,15 +303,15 @@ public static function getOptionsFromValues($values) {
            $target_entity_type_bundles = array_keys($target_bundles_infos);
          }
          // Create "actions" options.
          $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . '*'] = $field->getLabel() . ' : ' . t('All entities referenced', ['@bundle_label' => strtolower((string) t('All bundles')))];
          $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . '*'] = $field->getLabel() . ' : ' . t('All entities referenced');
          if ($field_cardinality !== 1) {
            $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . '*' . '|0'] = $field->getLabel() . ' : ' . t('First of all entities referenced', ['@bundle_label' => strtolower((string) t('All bundles')))];
            $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . '*' . '|0'] = $field->getLabel() . ' : ' . t('First of all entities referenced');
          }
          foreach ($target_entity_type_bundles as $target_bundle) {
            $bundle_label = $target_bundles_infos[$target_bundle]['label'];
            $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . $target_bundle] = $field->getLabel() . ' : ' . t('All entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label))];
            $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . $target_bundle] = $field->getLabel() . ' : ' . t('All entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label)]);
            if ($field_cardinality !== 1) {
              $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . $target_bundle . '|0'] = $field->getLabel() . ' : ' . t('First of all entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label))];
              $fields_options[(string) t('Entity reference')][$field_name . '|' . $target_entity_type . '|' . $target_bundle . '|0'] = $field->getLabel() . ' : ' . t('First of all entities referenced of bundle: @bundle_label', ['@bundle_label' => strtolower($bundle_label)]);
            }
          }
        }