You are here

public function Title::render in Drupal 10

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

Render the area.

Parameters

bool $empty: (optional) Indicator if view result is empty or not. Defaults to FALSE.

Return value

array In any case we need a valid Drupal render array to return.

Overrides AreaPluginBase::render

File

core/modules/views/src/Plugin/views/area/Title.php, line 58

Class

Title
Views area title override handler.

Namespace

Drupal\views\Plugin\views\area

Code

public function render($empty = FALSE) {

  // Do nothing for this handler by returning an empty render array.
  return [];
}