function ResponseStatus::create
Same name in other branches
- 11.x core/modules/system/src/Plugin/Condition/ResponseStatus.php \Drupal\system\Plugin\Condition\ResponseStatus::create()
Overrides ContainerFactoryPluginInterface::create
File
-
core/
modules/ system/ src/ Plugin/ Condition/ ResponseStatus.php, line 35
Class
- ResponseStatus
- Provides a 'Response status' condition.
Namespace
Drupal\system\Plugin\ConditionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : static {
$instance = new static($configuration, $plugin_id, $plugin_definition);
$instance->setRequestStack($container->get('request_stack'));
return $instance;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.