protected function 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'.

See also

views_fetch_plugin_names()

1 call to DisplayPluginBase::getType()
DisplayPluginBase::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Provide the default form for setting options.
4 methods override DisplayPluginBase::getType()
DisplayTest::getType in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/display/DisplayTest.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::getType().
EntityReference::getType in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::getType().
Feed::getType in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::getType().
RestExport::getType in drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php
Returns the display type that this display requires.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 2587
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

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