Skip to content
Snippets Groups Projects
Unverified Commit 6e7d1e6e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2730227 by kellyimagined, izus, swarad07, Sonal.Sangale, snehi, ZeiP,...

Issue #2730227 by kellyimagined, izus, swarad07, Sonal.Sangale, snehi, ZeiP, mohit_aghera, quietone, impalash, joachim, jhodgdon: inaccurate docs for hook_field_views_data()

(cherry picked from commit 9b9dc205)
parent 68b338b1
No related branches found
No related tags found
9 merge requests!2496Issue #3222757 by lauriii, Wim Leers, nod_, rachel_norfolk, itmaybejj,...,!2366Issue #3285105 by Daniel Arend,!2304Issue #3258987: Class "Drupal\Core\Utility\Error" not found in _drupal_error_handler_real() due to bug in PHP 8.1.0-8.1.5,!2148Issue #3270899: Remove Color module from core,!2071Issue #927570: Setting 403 or 404 handler to a page that redirects leads to endless loop,!1975Issue #3269749: losing query params from user to user/login redirect,!1387Draft: Resolve #2511878 "Support enclosure field",!799Issue #3214332: Preview content is broken in Claro.,!558Resolve #3020422 "Toolbar style update"
......@@ -501,9 +501,11 @@ function hook_views_data_alter(array &$data) {
/**
* Override the default Views data for a Field API field.
*
* The field module's implementation of hook_views_data() invokes this for each
* field storage, in the module that defines the field type. It is not invoked
* in other modules.
* When collecting the views data, views_views_data() invokes this hook for each
* field storage definition, on the module that provides the field storage
* definition. If the return value is empty, the result of
* views_field_default_views_data() is used instead. Then the result is altered
* by invoking hook_field_views_data_alter() on all modules.
*
* If no hook implementation exists, hook_views_data() falls back to
* views_field_default_views_data().
......@@ -585,7 +587,7 @@ function hook_field_views_data_alter(array &$data, \Drupal\field\FieldStorageCon
/**
* Alter the Views data on a per field basis.
*
* The field module's implementation of hook_views_data_alter() invokes this for
* The Views module's implementation of hook_views_data_alter() invokes this for
* each field storage, in the module that defines the field type. It is not
* invoked in other modules.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment