public static function FeedsPlugin::byType in Feeds 8.2
Gets all available plugins of a particular type.
Parameters
$type: 'fetcher', 'parser' or 'processor'
2 calls to FeedsPlugin::byType()
- feeds_entity_property_info_alter in ./
feeds.module - Implements hook_entity_property_info_alter().
- feeds_ui_plugin_form in feeds_ui/
feeds_ui.admin.inc - Build a form of plugins to pick from.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsPlugin.php, line 216 - Definition of FeedsPlugin class.
Class
- FeedsPlugin
- Implement source interface for all plugins.
Namespace
Drupal\feeds\PluginCode
public static function byType($type) {
$plugins = self::all();
$result = array();
foreach ($plugins as $key => $info) {
if ($type == self::typeOf($key)) {
$result[$key] = $info;
}
}
return $result;
}