3 namespace Drupal\Core\Render\Element;
6 * Provides a link render element for a "more" link, like those used in blocks.
9 * - #title: The text of the link to generate (defaults to 'More').
11 * See \Drupal\Core\Render\Element\Link for additional properties.
16 * '#type' => 'more_link',
17 * '#url' => Url::fromRoute('examples.more_examples')
21 * @RenderElement("more_link")
23 class MoreLink extends Link {
28 public function getInfo() {
29 $info = parent::getInfo();
31 '#title' => $this->t('More'),
32 '#theme_wrappers' => [
34 '#attributes' => ['class' => ['more-link']],