public function ViewsRandomSeedRandom::__construct in Views random seed 8
Constructs a Handler 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.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ sort/ ViewsRandomSeedRandom.php, line 32
Class
- ViewsRandomSeedRandom
- Handle a random sort with seed.
Namespace
Drupal\views_random_seed\Plugin\views\sortCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, SeedCalculator $seedCalculator) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->seedCalculator = $seedCalculator;
}