You are here

function taxonomy_entity_index_field_config_delete in Taxonomy Entity Index 8

Implements hook_field_config_delete().

File

./taxonomy_entity_index.module, line 16
Module file for taxonomy_entity_index.

Code

function taxonomy_entity_index_field_config_delete(FieldConfig $instance) {
  \Drupal::database()
    ->delete('taxonomy_entity_index')
    ->condition('field_name', $instance
    ->id())
    ->condition('entity_type', $instance
    ->getEntityTypeId())
    ->condition('bundle', $instance
    ->bundle())
    ->execute();
}