You are here

public static function TamperPluginDefinition::loadAll in Tamper 7

Returns all plugin definitions.

Return value

[]TamperPluginDefinition A list of all available plugin definitions.

File

src/Tamper.php, line 60
Contains TamperPluginBase.

Class

TamperPluginDefinition
Wraps a plugin definition array.

Code

public static function loadAll() {
  ctools_include('plugins');
  $definitions = array();
  foreach (ctools_get_plugins('tamper', 'plugins') as $id => $definition) {
    $definitions[$id] = new self($id, $definition);
  }
  return $definitions;
}