function FilterID::create

Same name in other branches
  1. 9 core/modules/filter/src/Plugin/migrate/process/FilterID.php \Drupal\filter\Plugin\migrate\process\FilterID::create()
  2. 10 core/modules/filter/src/Plugin/migrate/process/FilterID.php \Drupal\filter\Plugin\migrate\process\FilterID::create()
  3. 11.x core/modules/filter/src/Plugin/migrate/process/FilterID.php \Drupal\filter\Plugin\migrate\process\FilterID::create()

Overrides ContainerFactoryPluginInterface::create

1 call to FilterID::create()
FilterIdTest::testTransform in core/modules/filter/tests/src/Kernel/Plugin/migrate/process/FilterIdTest.php
Tests transformation of filter_id plugin.

File

core/modules/filter/src/Plugin/migrate/process/FilterID.php, line 53

Class

FilterID
Plugin annotation @MigrateProcessPlugin( id = "filter_id" )

Namespace

Drupal\filter\Plugin\migrate\process

Code

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

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