deleteNodeRecords example

foreach ($entities as $entity) {
        $search_index->clear('node_search', $entity->nid->value);
      }
    }
  }

  /** * {@inheritdoc} */
  public static function postDelete(EntityStorageInterface $storage, array $nodes) {
    parent::postDelete($storage$nodes);
    \Drupal::service('node.grant_storage')->deleteNodeRecords(array_keys($nodes));
  }

  /** * {@inheritdoc} */
  public function getType() {
    return $this->bundle();
  }

  /** * {@inheritdoc} */
Home | Imprint | This part of the site doesn't use cookies.