You are here

public function DisplayPluginInterface::getPlugin in Drupal 10

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

Get the instance of a plugin, for example style or row.

Parameters

string $type: The type of the plugin.

Return value

\Drupal\views\Plugin\views\ViewsPluginInterface

2 calls to DisplayPluginInterface::getPlugin()
PathPluginBase::getRoute in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Generates a route entry for a given view and display.
RestExport::collectRoutes in core/modules/rest/src/Plugin/views/display/RestExport.php
Adds the route entry of a view to the collection.

File

core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php, line 275

Class

DisplayPluginInterface
Provides an interface for Views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function getPlugin($type);