Commit 6ebade72 authored by alexpott's avatar alexpott

Issue #2496261 by Berdir: Field Purging invalidates views_data caches as it uses the wrong hook

parent ffe9803c
......@@ -468,9 +468,9 @@ function views_add_contextual_links(&$render_element, $location, ViewExecutable
}
/**
* Implements hook_ENTITY_TYPE_create() for 'field_config'.
* Implements hook_ENTITY_TYPE_insert() for 'field_config'.
*/
function views_field_config_create(FieldConfigInterface $field) {
function views_field_config_insert(FieldConfigInterface $field) {
Views::viewsData()->clear();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment