MoreLink.php in Zircon Profile 8
Same filename and directory in other branches
Contains \Drupal\Core\Render\Element\MoreLink.
Namespace
Drupal\Core\Render\ElementFile
core/lib/Drupal/Core/Render/Element/MoreLink.phpView source
<?php
/**
* @file
* Contains \Drupal\Core\Render\Element\MoreLink.
*/
namespace Drupal\Core\Render\Element;
/**
* Provides a link render element for a "more" link, like those used in blocks.
*
* @RenderElement("more_link")
*/
class MoreLink extends Link {
/**
* {@inheritdoc}
*/
public function getInfo() {
$info = parent::getInfo();
return array(
'#title' => $this
->t('More'),
'#theme_wrappers' => array(
'container' => array(
'#attributes' => array(
'class' => array(
'more-link',
),
),
),
),
) + $info;
}
}