public static function Field::create in Synonyms 2.0.x
Same name in this branch
- 2.0.x src/Plugin/Derivative/Field.php \Drupal\synonyms\Plugin\Derivative\Field::create()
- 2.0.x src/Plugin/Synonyms/Provider/Field.php \Drupal\synonyms\Plugin\Synonyms\Provider\Field::create()
Same name and namespace in other branches
- 8 src/Plugin/Derivative/Field.php \Drupal\synonyms\Plugin\Derivative\Field::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- src/
Plugin/ Derivative/ Field.php, line 60
Class
- Field
- Derivative for synonyms provider plugins.
Namespace
Drupal\synonyms\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('entity_type.manager'), $container
->get('entity_type.bundle.info'), $container
->get('entity_field.manager'), $container
->get('synonyms.provider.field_type_to_synonyms'));
}