diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataFieldRow.php b/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataFieldRow.php index 0c95d32..2c4c839 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataFieldRow.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/views/row/DataFieldRow.php @@ -137,8 +137,8 @@ public function render($row) { $output = array(); foreach ($this->view->field as $id => $field) { - // If this is not unknown and the raw output option has been set, just - // get the raw value. + // If this is not unknown and the raw output option has been set, just get + // the raw value. if (($field->field_alias != 'unknown') && !empty($this->rawOutputOptions[$id])) { $value = $field->sanitizeValue($field->get_value($row), 'xss_admin'); } diff --git a/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php b/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php index e75e3d9..b413c26 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php @@ -221,7 +221,7 @@ public function testFieldRawOutput() { // Just test the raw 'created' value against each row. foreach ($this->drupalGetAJAX('test/serialize/field') as $index => $values) { - $this->assertIdentical($values['created'], $view->result[$index]->views_test_data_created, format_string('Expected raw created value found.')); + $this->assertIdentical($values['created'], $view->result[$index]->views_test_data_created, 'Expected raw created value found.'); } }