Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Text.php

function Text::preQuery

Overrides HandlerBase::preQuery

File

core/modules/views/src/Plugin/views/area/Text.php, line 49

Class

Text
Views area text handler.

Namespace

Drupal\views\Plugin\views\area

Code

public function preQuery() {
    $content = $this->options['content']['value'];
    // Check for tokens that require a total row count.
    if (str_contains($content, '[view:page-count]') || str_contains($content, '[view:total-rows]')) {
        $this->view->get_total_rows = TRUE;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal