function DisplayLink::isPathBasedDisplay

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/area/DisplayLink.php \Drupal\views\Plugin\views\area\DisplayLink::isPathBasedDisplay()
  2. 8.9.x core/modules/views/src/Plugin/views/area/DisplayLink.php \Drupal\views\Plugin\views\area\DisplayLink::isPathBasedDisplay()
  3. 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.