You are here

public function DisplayPluginInterface::getType in Drupal 8

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

Returns the display type that this display requires.

This can be used for filtering views plugins. E.g. if a plugin category of 'foo' is specified, only plugins with no 'types' declared or 'types' containing 'foo'. If you have a type of bar, this plugin will not be used. This is applicable for style, row, access, cache, and exposed_form plugins.

Return value

string The required display type. Defaults to 'normal'.

See also

\Drupal\views\Views::fetchPluginNames()

1 method overrides DisplayPluginInterface::getType()
DisplayPluginBase::getType in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Returns the display type that this display requires.

File

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

Class

DisplayPluginInterface
Provides an interface for Views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function getType();