You are here

public function ComponentsInfo::suppressWarnings in Components! 8.2

Suppress warnings until the theme registry cache is rebuilt.

@internal

File

src/Template/ComponentsInfo.php, line 374

Class

ComponentsInfo
Loads info about components defined in themes or modules.

Namespace

Drupal\components\Template

Code

public function suppressWarnings() {
  $this->cache
    ->set('components:suppressWarnings', TRUE, Cache::PERMANENT, [
    'theme_registry',
  ]);
}