You are here

public function CacheCommands::alterCacheTypes in Helper 8

Add additional options to the drush cache:clear command.

@hook on-event cache-clear

File

src/Commands/CacheCommands.php, line 19

Class

CacheCommands
Drush commands for clearing caches.

Namespace

Drupal\helper\Commands

Code

public function alterCacheTypes(array &$types, $include_bootstrapped_types) {
  if ($include_bootstrapped_types) {
    $types['libraries'] = [
      $this,
      'clearLibraries',
    ];
    $types['bootstrap'] = [
      $this,
      'clearBootstrap',
    ];
  }
}