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;
  $this->cacheTagInvalidator
    ->invalidateTags([
    'element_info_build',
  ]);
  parent::clearCachedDefinitions();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.