public function ContentTypeModule::shouldShowNext in Opigno module 8
Same name and namespace in other branches
- 3.x src/Plugin/OpignoGroupManagerContentType/ContentTypeModule.php \Drupal\opigno_module\Plugin\OpignoGroupManagerContentType\ContentTypeModule::shouldShowNext()
Return TRUE if the page should show the "next" action button.
Even if the score does not permit the user to go next.
Returning TRUE will not automatically show the button. The button will show up only if this method returns TRUE and if there is a next step available and if the user is able to go to this next content.
Return value
bool Next flag.
Overrides ContentTypeInterface::shouldShowNext
File
- src/
Plugin/ OpignoGroupManagerContentType/ ContentTypeModule.php, line 267
Class
- ContentTypeModule
- Class ContentTypeModule.
Namespace
Drupal\opigno_module\Plugin\OpignoGroupManagerContentTypeCode
public function shouldShowNext() {
// If the route is the good one, show the next/finish button.
if (\Drupal::routeMatch()
->getRouteName() == 'entity.opigno_module.canonical') {
return TRUE;
}
return FALSE;
}