Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. View.php

function View::postDelete

Overrides EntityBase::postDelete

File

core/modules/views/src/Entity/View.php, line 417

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities) {
    parent::postDelete($storage, $entities);
    $tempstore = \Drupal::service('tempstore.shared')->get('views');
    foreach ($entities as $entity) {
        $tempstore->delete($entity->id());
    }
    views_invalidate_cache();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal