function ViewsHooks::fieldConfigInsert

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Hook/ViewsHooks.php \Drupal\views\Hook\ViewsHooks::fieldConfigInsert()

Implements hook_ENTITY_TYPE_insert() for 'field_config'.

Attributes

#[Hook('field_config_insert')]

File

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

Class

ViewsHooks
Hook implementations for views.

Namespace

Drupal\views\Hook

Code

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

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