commit 557b453edde18ddded29d9c98c5bc94682054ec5 Author: Joel Pittet Date: Tue Sep 9 21:05:29 2014 -0700 fix morlink and system compact link diff --git a/core/lib/Drupal/Core/Render/Element/MoreLink.php b/core/lib/Drupal/Core/Render/Element/MoreLink.php index 4f7e90c..6551abb 100644 --- a/core/lib/Drupal/Core/Render/Element/MoreLink.php +++ b/core/lib/Drupal/Core/Render/Element/MoreLink.php @@ -24,7 +24,7 @@ public function getInfo() { '#title' => $this->t('More'), '#theme_wrappers' => array( 'container' => array( - '#attributes' => array('class' => 'more-link'), + '#attributes' => array('class' => array('more-link')), ), ), ) + $info; diff --git a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php index e5f180a..6ce349e 100644 --- a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php +++ b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php @@ -19,7 +19,6 @@ class SystemCompactLink extends Link { */ public function getInfo() { $class = get_class($this); - $info = parent::getInfo(); return array( '#pre_render' => array( array($class, 'preRenderCompactLink'), @@ -27,14 +26,14 @@ public function getInfo() { ), '#theme_wrappers' => array( 'container' => array( - '#attributes' => array('class' => 'compact-link'), + '#attributes' => array('class' => array('compact-link')), ), ), - ) + $info; + ); } /** - * Pre-render callback: Renders a link into #markup. + * Pre-render callback: Renders a lin k into #markup. * * Doing so during pre_render gives modules a chance to alter the link parts. *