function ViewExecutable::getHandlerTypes

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

Provides a list of views handler types used in a view.

This also provides some information about the views handler types.

Return value

array An array of associative arrays containing:

  • title: The title of the handler type.
  • ltitle: The lowercase title of the handler type.
  • stitle: A singular title of the handler type.
  • lstitle: A singular lowercase title of the handler type.
  • plural: Plural version of the handler type.
  • (optional) type: The actual internal used handler type. This key is just used for header,footer,empty to link to the internal type: area.
29 calls to ViewExecutable::getHandlerTypes()
AddHandler::buildForm in core/modules/views_ui/src/Form/Ajax/AddHandler.php
Form constructor.
ConfigHandler::buildForm in core/modules/views_ui/src/Form/Ajax/ConfigHandler.php
Form constructor.
ConfigHandler::submitForm in core/modules/views_ui/src/Form/Ajax/ConfigHandler.php
Form submission handler.
ConfigHandlerExtra::buildForm in core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php
Form constructor.
ConfigHandlerGroup::buildForm in core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php
Form constructor.

... See full list

File

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

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public static function getHandlerTypes() {
    return Views::getHandlerTypes();
}

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