You are here

public function PluginCommands::cacheClear in Plugin 8.2

Adds a cache clear option for plugin types.

@hook on-event cache-clear

File

src/Commands/PluginCommands.php, line 38

Class

PluginCommands
Drush integration for the Plugin module.

Namespace

Drupal\plugin\Commands

Code

public function cacheClear(&$types, $include_bootstrapped_types) {
  if ($include_bootstrapped_types) {
    $types['plugin-types'] = [
      $this,
      'clearPluginTypeCaches',
    ];
  }
}