public function MediaDirectoryArgument::__construct in Media Directories 8
Same name and namespace in other branches
- 2.x src/Plugin/views/argument/MediaDirectoryArgument.php \Drupal\media_directories\Plugin\views\argument\MediaDirectoryArgument::__construct()
Constructs a PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ argument/ MediaDirectoryArgument.php, line 52
Class
- MediaDirectoryArgument
- Media directory argument plugin.
Namespace
Drupal\media_directories\Plugin\views\argumentCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $configFactory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->definition = $plugin_definition + $configuration;
$this->configFactory = $configFactory;
}