public function DisplayPluginBase::useMoreAlways

Should the enabled display more link be shown when no more items?

2 calls to DisplayPluginBase::useMoreAlways()
DisplayPluginBase::preExecute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Set up any variables on the view prior to execution. These are separated from execute because they are extremely common and unlikely to be overridden on an individual display.
DisplayPluginBase::renderMoreLink in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Render the 'more' link

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 323
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function useMoreAlways() {
  if ($this
    ->usesMore()) {
    return $this
      ->getOption('use_more_always');
  }
  return FALSE;
}