You are here

public function DisplayPluginBase::getType in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::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'.

Overrides DisplayPluginInterface::getType

See also

\Drupal\views\Views::fetchPluginNames()

1 call to DisplayPluginBase::getType()
DisplayPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Provide a form to edit options for this plugin.
4 methods override DisplayPluginBase::getType()
DisplayTest::getType in core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php
Returns the display type that this display requires.
EntityReference::getType in core/modules/views/src/Plugin/views/display/EntityReference.php
Returns the display type that this display requires.
Feed::getType in core/modules/views/src/Plugin/views/display/Feed.php
Returns the display type that this display requires.
RestExport::getType in core/modules/rest/src/Plugin/views/display/RestExport.php
Returns the display type that this display requires.

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2476

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function getType() {
  return 'normal';
}