You are here

public function Score::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/views/field/Score.php \Drupal\search\Plugin\views\field\Score::render()
  2. 9 core/modules/search/src/Plugin/views/field/Score.php \Drupal\search\Plugin\views\field\Score::render()

Overrides NumericField::render

File

core/modules/search/src/Plugin/views/field/Score.php, line 40

Class

Score
Field handler for search score.

Namespace

Drupal\search\Plugin\views\field

Code

public function render(ResultRow $values) {

  // Only render if we exist.
  if (isset($this->tableAlias)) {
    return parent::render($values);
  }
}