function EntityReferenceArgument::create
Same name in other branches
- 10 core/modules/views/src/Plugin/views/argument/EntityReferenceArgument.php \Drupal\views\Plugin\views\argument\EntityReferenceArgument::create()
Overrides PluginBase::create
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ EntityReferenceArgument.php, line 41
Class
- EntityReferenceArgument
- Argument handler to accept an entity reference ID value.
Namespace
Drupal\views\Plugin\views\argumentCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity.repository'), $container->get('entity_type.manager'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.