function ViewExecutable::getPluginTypes

Same name in other branches
  1. 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getPluginTypes()
  2. 8.9.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getPluginTypes()
  3. 10 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getPluginTypes()

Returns the valid types of plugins that can be used.

Return value

array An array of plugin type strings.

3 calls to ViewExecutable::getPluginTypes()
PluginTypeListTest::testPluginList in core/modules/views/tests/src/Unit/PluginTypeListTest.php
Tests the plugins list is correct.
Views::getPluginDefinitions in core/modules/views/src/Views.php
Gets all the views plugin definitions.
views_hook_info in core/modules/views/views.module
Implements hook_hook_info().

File

core/modules/views/src/ViewExecutable.php, line 2197

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public static function getPluginTypes($type = NULL) {
    return Views::getPluginTypes($type);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.