Views overview

Overview of the Views module API

The Views module is a generalized query and display engine, which can be used to make views (formatted lists, grids, feeds, and other output) of items (often entities, but can be other types of data). Developers can interact with Views in several ways:

  • Provide plugins: Views plugins govern nearly every aspect of views, including querying (sorting, filtering, etc.) and display (at several levels of granularity, ranging from the entire view to the details of a field). See the Views plugins topic for more information.
  • Provide data: Data types can be provided to Views by implementing hook_views_data(), and data types provided by other modules can be altered by implementing hook_views_data_alter().
  • Implement hooks: A few operations in Views can be influenced by hooks. See the hooks topic for a list.
  • Theming: See the Views templates topic for more information.

See also

\Drupal\views\ViewExecutable

File

drupal/core/modules/views/views.api.php, line 10
Describes hooks and plugins provided by the Views module.