function EntityArgument::create
Same name in other branches
- 11.x core/modules/views/src/Plugin/views/argument/EntityArgument.php \Drupal\views\Plugin\views\argument\EntityArgument::create()
Overrides PluginBase::create
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ EntityArgument.php, line 59
Class
- EntityArgument
- Argument handler to accept an entity 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.