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

Breadcrumb

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

function ElementInfoManager::clearCachedDefinitions

Overrides DefaultPluginManager::clearCachedDefinitions

File

core/lib/Drupal/Core/Render/ElementInfoManager.php, line 147

Class

ElementInfoManager
Provides a plugin manager for element plugins.

Namespace

Drupal\Core\Render

Code

public function clearCachedDefinitions() {
    $this->elementInfo = NULL;
    $cids = [];
    foreach ($this->themeHandler
        ->listInfo() as $theme_name => $info) {
        $cids[] = $this->getCid($theme_name);
    }
    $this->cacheBackend
        ->deleteMultiple($cids);
    parent::clearCachedDefinitions();
}

API Navigation

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