diff --git a/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php b/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php index ea2fb10..6037bd4 100644 --- a/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php +++ b/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php @@ -18,8 +18,8 @@ * * @FieldFormatter( * id = "aggregator_title", - * label = @Translation("Aggregator item title"), - * description = @Translation("Formats the aggregator item and aggregator feed title with an optional link."), + * label = @Translation("Aggregator title"), + * description = @Translation("Formats an aggregator item or feed title with an optional link."), * field_types = { * "string" * } diff --git a/core/modules/aggregator/src/Tests/AggregatorTitleTest.php b/core/modules/aggregator/src/Tests/AggregatorTitleTest.php index a35a834..cfa9975 100644 --- a/core/modules/aggregator/src/Tests/AggregatorTitleTest.php +++ b/core/modules/aggregator/src/Tests/AggregatorTitleTest.php @@ -50,14 +50,14 @@ protected function setUp() { * Tests the formatter output. */ public function testStringFormatter() { - // Creates an aggregator feed. + // Create an aggregator feed. $aggregator_feed = Feed::create([ 'title' => 'testing title', 'url' => 'http://www.example.com', ]); $aggregator_feed->save(); - // Creates an aggregator feed item. + // Create an aggregator feed item. $aggregator_item = Item::create([ 'title' => 'test title', 'fid' => $aggregator_feed->id(), @@ -65,7 +65,7 @@ public function testStringFormatter() { ]); $aggregator_item->save(); - // Verifies aggregator feed title with and without links. + // Verify aggregator feed title with and without links. $build = $aggregator_feed->{$this->fieldName}->view(['type' => 'aggregator_title', 'settings' => ['display_as_link' => TRUE]]); $result = $this->render($build); @@ -77,7 +77,7 @@ public function testStringFormatter() { $this->assertTrue(strpos($result, 'testing title') === 0); $this->assertTrue(strpos($result, $aggregator_feed->getUrl()) === FALSE); - //Verifies aggregator item title with and without links. + // Verify aggregator item title with and without links. $build = $aggregator_item->{$this->fieldName}->view(['type' => 'aggregator_title', 'settings' => ['display_as_link' =>TRUE]]); $result = $this->render($build);