EntityRevisionConverter::hasForwardRevisionFlag

protected EntityRevisionConverter::hasForwardRevisionFlag(array $definition)

Determines if the route definition includes a forward-revision flag.

This is a custom flag defined by the Content Moderation module 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.

File

core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php, line 59

Class

EntityRevisionConverter
Defines a class for making sure the edit-route loads the current draft.

Namespace

Drupal\content_moderation\ParamConverter

Code

protected function hasForwardRevisionFlag(array $definition) {
  return (isset($definition['load_forward_revision']) && $definition['load_forward_revision']);
}
doc_Drupal
2016-10-29 09:07:29
Comments
Leave a Comment

Please login to continue.