function Fid::create

Same name in this branch
  1. 8.9.x core/modules/aggregator/src/Plugin/views/argument/Fid.php \Drupal\aggregator\Plugin\views\argument\Fid::create()
Same name in other branches
  1. 9 core/modules/file/src/Plugin/views/argument/Fid.php \Drupal\file\Plugin\views\argument\Fid::create()
  2. 9 core/modules/aggregator/src/Plugin/views/argument/Fid.php \Drupal\aggregator\Plugin\views\argument\Fid::create()

Overrides PluginBase::create

File

core/modules/file/src/Plugin/views/argument/Fid.php, line 53

Class

Fid
Argument handler to accept multiple file ids.

Namespace

Drupal\file\Plugin\views\argument

Code

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

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