protected function EntityRevisionConverter::hasForwardRevisionFlag in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/ParamConverter/EntityRevisionConverter.php \Drupal\workbench_moderation\ParamConverter\EntityRevisionConverter::hasForwardRevisionFlag()
Determines if the route definition includes a forward-revision flag.
This is a custom flag defined by WBM to load forward revisions rather than the default revision on a given route.
Parameters
array $definition: The parameter definition provided in the route options.
Return value
bool TRUE if the forward revision flag is set, FALSE otherwise.
1 call to EntityRevisionConverter::hasForwardRevisionFlag()
- EntityRevisionConverter::applies in src/
ParamConverter/ EntityRevisionConverter.php - Determines if the converter applies to a specific route and variable.
File
- src/
ParamConverter/ EntityRevisionConverter.php, line 59
Class
- EntityRevisionConverter
- Defines a class for making sure the edit-route loads the current draft.
Namespace
Drupal\workbench_moderation\ParamConverterCode
protected function hasForwardRevisionFlag(array $definition) {
return isset($definition['load_forward_revision']) && $definition['load_forward_revision'];
}