public function DefaultProcessor::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php \Drupal\aggregator\Plugin\aggregator\processor\DefaultProcessor::__construct()
Constructs a DefaultProcessor object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory object.
\Drupal\Core\Entity\Query\QueryInterface $item_query: The entity query object for feed items.
\Drupal\aggregator\ItemStorageInterface $item_storage: The entity storage for feed items.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
Overrides PluginBase::__construct
File
- core/
modules/ aggregator/ src/ Plugin/ aggregator/ processor/ DefaultProcessor.php, line 85 - Contains \Drupal\aggregator\Plugin\aggregator\processor\DefaultProcessor.
Class
- DefaultProcessor
- Defines a default processor implementation.
Namespace
Drupal\aggregator\Plugin\aggregator\processorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config, QueryInterface $item_query, ItemStorageInterface $item_storage, DateFormatterInterface $date_formatter) {
$this->configFactory = $config;
$this->itemStorage = $item_storage;
$this->itemQuery = $item_query;
$this->dateFormatter = $date_formatter;
// @todo Refactor aggregator plugins to ConfigEntity so merging
// the configuration here is not needed.
parent::__construct($configuration + $this
->getConfiguration(), $plugin_id, $plugin_definition);
}