You are here

protected function FeedType::getPlugin in Feeds 8.3

Returns the configured plugin for this type given the plugin type.

Parameters

string $plugin_type: The plugin type to return.

Return value

\Drupal\feeds\Plugin\PluginInterface The plugin specified.

4 calls to FeedType::getPlugin()
FeedType::getFetcher in src/Entity/FeedType.php
Returns the configured fetcher for this feed type.
FeedType::getParser in src/Entity/FeedType.php
Returns the configured parser for this feed type.
FeedType::getPlugins in src/Entity/FeedType.php
Returns the configured plugins for this feed type.
FeedType::getProcessor in src/Entity/FeedType.php
Returns the configured processor for this feed type.

File

src/Entity/FeedType.php, line 448

Class

FeedType
Defines the Feeds feed type entity.

Namespace

Drupal\feeds\Entity

Code

protected function getPlugin($plugin_type) {
  $bags = $this
    ->getPluginCollections();
  return $bags[$plugin_type . '_configuration']
    ->get($this->{$plugin_type});
}