You are here

MoreLink.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/lib/Drupal/Core/Render/Element/MoreLink.php

File

core/lib/Drupal/Core/Render/Element/MoreLink.php
View 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;
  }

}

Classes

Namesort descending Description
MoreLink Provides a link render element for a "more" link, like those used in blocks.