diff --git a/src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php b/src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php index 3ff4ccd..3edc634 100644 --- a/src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php +++ b/src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php @@ -250,7 +250,7 @@ class ContentEntityAggregatorSensorPlugin extends DatabaseAggregatorSensorPlugin $row[] = $value ? \Drupal::service('renderer')->renderPlain($value) : $entity->$field->$property; } else { - $row[] = t('field %field is invalid', ['%field' => $field]); + $row[] = ''; } break; } diff --git a/src/Tests/MonitoringCoreWebTest.php b/src/Tests/MonitoringCoreWebTest.php index 825b801..cd12da8 100644 --- a/src/Tests/MonitoringCoreWebTest.php +++ b/src/Tests/MonitoringCoreWebTest.php @@ -449,7 +449,6 @@ class MonitoringCoreWebTest extends MonitoringTestBase { $this->assertText(\Drupal::service('date.formatter')->format($node1->getRevisionCreationTime(), 'short')); $this->assertText(\Drupal::service('date.formatter')->format($node2->getRevisionCreationTime(), 'short')); $this->assertText(\Drupal::service('date.formatter')->format($node3->getRevisionCreationTime(), 'short')); - $this->assertText('field test_wrong_field is invalid'); // Update the sensor to look for nodes with a reference to term1 in the // first field and term2 in the second.