public function PageRedirect::__construct in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php \Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPlugin\PageRedirect::__construct()
Constructs a \Drupal\Component\Plugin\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.
Overrides PluginBase::__construct
File
- src/
Plugin/ RabbitHoleBehaviorPlugin/ PageRedirect.php, line 92
Class
- PageRedirect
- Redirects to another page.
Namespace
Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RabbitHoleEntityPluginManager $rhepm, ModuleHandlerInterface $mhi, Token $token) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->rhEntityPluginManager = $rhepm;
$this->moduleHandler = $mhi;
$this->token = $token;
$this->cacheMetadata = new BubbleableMetadata();
}