function ViewsHooks::fieldConfigInsert

Implements hook_ENTITY_TYPE_insert() for 'field_config'.

File

core/modules/views/src/Hook/ViewsHooks.php, line 268

Class

ViewsHooks
Hook implementations for views.

Namespace

Drupal\views\Hook

Code

public function fieldConfigInsert(EntityInterface $field) {
    Views::viewsData()->clear();
}

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