Constructs a \Drupal\aggregator\SettingsForm object.
\Drupal\Core\Config\ConfigFactory $config_factory: The factory for configuration objects.
\Drupal\aggregator\Plugin\AggregatorPluginManager $fetcher_manager: The aggregator fetcher plugin manager.
\Drupal\aggregator\Plugin\AggregatorPluginManager $parser_manager: The aggregator parser plugin manager.
\Drupal\aggregator\Plugin\AggregatorPluginManager $processor_manager: The aggregator processor plugin manager.
Overrides SystemConfigFormBase::__construct
public function __construct(ConfigFactory $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager) {
$this->configFactory = $config_factory;
$this->managers = array(
'fetcher' => $fetcher_manager,
'parser' => $parser_manager,
'processor' => $processor_manager,
);
// Get all available fetcher, parser and processor definitions.
foreach (array(
'fetcher',
'parser',
'processor',
) as $type) {
foreach ($this->managers[$type]
->getDefinitions() as $id => $definition) {
$this->definitions[$type][$id] = format_string('@title <span class="description">@description</span>', array(
'@title' => $definition['title'],
'@description' => $definition['description'],
));
}
}
}