commit 6d00d6509c41cb5826b795fe9af550b4980e10a6 Author: Joel Pittet Date: Tue Feb 18 22:04:18 2014 -0800 fix themetestsubscriber diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php index 78a8652..46ab8f2 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php @@ -135,7 +135,7 @@ public function build() { $more_link = array( '#type' => 'more_link', '#href' => 'aggregator/sources/' . $feed->id(), - '#attributes' => array('title' => t("View this feed's recent news.")), + '#attributes' => array('title' => $this->t("View this feed's recent news.")), ); $read_more = drupal_render($more_link); $items = array(); diff --git a/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/EventSubscriber/ThemeTestSubscriber.php b/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/EventSubscriber/ThemeTestSubscriber.php index d0bbcd1..3f4eb42 100644 --- a/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/EventSubscriber/ThemeTestSubscriber.php +++ b/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/EventSubscriber/ThemeTestSubscriber.php @@ -44,8 +44,8 @@ public function onRequest(GetResponseEvent $event) { // returning output and theming the page as a whole. $more_link = array( '#type' => 'more_link', - '#url' => 'user', - '#title' => 'Themed output generated in a KernelEvents::REQUEST listener', + '#href' => 'user', + '#attributes' => array('title' => 'Themed output generated in a KernelEvents::REQUEST listener'), ); $GLOBALS['theme_test_output'] = drupal_render($more_link); }