function WizardEnhancer::isApplicable
Same name in other branches
- 8.x-3.x src/Routing/Enhancer/WizardEnhancer.php \Drupal\ctools\Routing\Enhancer\WizardEnhancer::isApplicable()
Returns if current route use ctools default parameters.
Parameters
\Symfony\Component\Routing\Route $route: The route to check.
Return value
bool TRUE if the route use one of ctools route default parameters or FALSE.
1 call to WizardEnhancer::isApplicable()
- WizardEnhancer::enhance in src/
Routing/ Enhancer/ WizardEnhancer.php - Updates the defaults for a route definition based on the request.
File
-
src/
Routing/ Enhancer/ WizardEnhancer.php, line 43
Class
- WizardEnhancer
- Sets the request format onto the request object.
Namespace
Drupal\ctools\Routing\EnhancerCode
public function isApplicable(Route $route) {
return !$route->hasDefault('_controller') && ($route->hasDefault('_wizard') || $route->hasDefault('_entity_wizard'));
}