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

Breadcrumb

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

function 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;
}

API Navigation

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