You are here

public function FeedType::getPluginOptionsList in Feeds 8.3

File

src/Entity/FeedType.php, line 515

Class

FeedType
Defines the Feeds feed type entity.

Namespace

Drupal\feeds\Entity

Code

public function getPluginOptionsList($plugin_type) {
  $manager = \Drupal::service("plugin.manager.feeds.{$plugin_type}");
  $options = [];
  foreach ($manager
    ->getDefinitions() as $id => $definition) {
    $options[$id] = $definition['title'];
  }
  return $options;
}