public static function TamperPluginDefinition::load in Tamper 7
Returns a single plugin definition.
Parameters
string $id: The plugin definition id.
Return value
self A plugin definition object.
File
- src/
Tamper.php, line 49 - Contains TamperPluginBase.
Class
- TamperPluginDefinition
- Wraps a plugin definition array.
Code
public static function load($id) {
ctools_include('plugins');
return new self($id, ctools_get_plugins('tamper', 'plugins', $id));
}