You are here

protected function DisplayLink::isPathBasedDisplay in Drupal 9

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

Check if a views display is a path-based display.

Parameters

string $display_id: The display ID to check.

Return value

bool Whether the display ID is an allowed display or not.

3 calls to DisplayLink::isPathBasedDisplay()
DisplayLink::buildOptionsForm in core/modules/views/src/Plugin/views/area/DisplayLink.php
Provide a form to edit options for this plugin.
DisplayLink::render in core/modules/views/src/Plugin/views/area/DisplayLink.php
Render the area.
DisplayLink::validate in core/modules/views/src/Plugin/views/area/DisplayLink.php
Validate that the plugin is correct and can be saved.

File

core/modules/views/src/Plugin/views/area/DisplayLink.php, line 220

Class

DisplayLink
Views area display_link handler.

Namespace

Drupal\views\Plugin\views\area

Code

protected function isPathBasedDisplay($display_id) {
  $loaded_display = $this->view->displayHandlers
    ->get($display_id);
  return $loaded_display instanceof PathPluginBase;
}