You are here

public function Recipe::getType in Recipe 8.2

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 DisplayPluginBase::getType

See also

\Drupal\views\Views::fetchPluginNames()

File

src/Plugin/views/display/Recipe.php, line 92

Class

Recipe
The plugin that handles a recipe format, such as RecipeML.

Namespace

Drupal\recipe\Plugin\views\display

Code

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