public function DisplayTest::getType in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php \Drupal\views_test_data\Plugin\views\display\DisplayTest::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 DisplayPluginBase::getType
See also
\Drupal\views\Views::fetchPluginNames()
File
- core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ display/ DisplayTest.php, line 38 - Contains \Drupal\views_test_data\Plugin\views\display\DisplayTest.
Class
- DisplayTest
- Defines a Display test plugin.
Namespace
Drupal\views_test_data\Plugin\views\displayCode
public function getType() {
return 'test';
}