1 EntityReferenceBehaviorHandlerTaxonomyIndex.inc public EntityReferenceBehaviorHandlerTaxonomyIndex::entityPostUpdate($entity_type, $entity, $field, $instance)

Overrides EntityReferenceBehaviorHandler::entityPostUpdate().

Runs after hook_node_update() used by taxonomy module.

Overrides EntityReferenceBehaviorHandler::entityPostUpdate

File

core/modules/entityreference/plugins/behavior/EntityReferenceBehaviorHandlerTaxonomyIndex.inc, line 55
Plugin class for the taxonomy behavior.

Class

EntityReferenceBehaviorHandlerTaxonomyIndex
Extends an entityreference field to maintain its references to taxonomy terms in the {taxonomy_index} table.

Code

public function entityPostUpdate($entity_type, $entity, $field, $instance) {
  if ($entity_type != 'node') {
    return;
  }

  $this->buildNodeIndex($entity);
}