public static function FeedsPlugin::child in Feeds 8.2
Determines whether given plugin is derived from given base plugin.
Parameters
$plugin_key: String that identifies a Feeds plugin key.
$parent_plugin: String that identifies a Feeds plugin key to be tested against.
Return value
TRUE if $parent_plugin is directly *or indirectly* a parent of $plugin, FALSE otherwise.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsPlugin.php, line 166 - Definition of FeedsPlugin class.
Class
- FeedsPlugin
- Implement source interface for all plugins.
Namespace
Drupal\feeds\PluginCode
public static function child($plugin_key, $parent_plugin) {
$all_info = self::all();
$info = $all_info[$plugin_key];
return TRUE;
}