You are here

public function DisplayPluginBase::useMoreAlways in Views (for Drupal 7) 8.3

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

2 calls to DisplayPluginBase::useMoreAlways()
DisplayPluginBase::preExecute in 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 lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Render the 'more' link

File

lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 313
Definition of 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('useMoreAlways');
  }
  return FALSE;
}