You are here

public function Feed::getType in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/Feed.php \Drupal\views\Plugin\views\display\Feed::getType()
  2. 9 core/modules/views/src/Plugin/views/display/Feed.php \Drupal\views\Plugin\views\display\Feed::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 Feed::getType()
Feed::newDisplay in core/modules/views/src/Plugin/views/display/Feed.php
Reacts on adding a display.

File

core/modules/views/src/Plugin/views/display/Feed.php, line 91

Class

Feed
The plugin that handles a feed, such as RSS or atom.

Namespace

Drupal\views\Plugin\views\display

Code

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