function TestProcessor::create

Same name and namespace in other branches
  1. 8.9.x core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php \Drupal\aggregator_test\Plugin\aggregator\processor\TestProcessor::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php, line 38

Class

TestProcessor
Defines a default processor implementation.

Namespace

Drupal\aggregator_test\Plugin\aggregator\processor

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('config.factory'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.