protected function WebformSubmissionListBuilder::getSubmissionRouteName in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformSubmissionListBuilder.php \Drupal\webform\WebformSubmissionListBuilder::getSubmissionRouteName()
Get submission route name based on the current route.
Return value
string The submission route name which can be either 'webform.user.submission' or 'webform_submission.canonical.
2 calls to WebformSubmissionListBuilder::getSubmissionRouteName()
- WebformSubmissionListBuilder::buildRow in src/
WebformSubmissionListBuilder.php - Builds a row for an entity in the entity listing.
- WebformSubmissionListBuilder::buildRowColumn in src/
WebformSubmissionListBuilder.php - Build row column.
File
- src/
WebformSubmissionListBuilder.php, line 1138
Class
- WebformSubmissionListBuilder
- Provides a list controller for webform submission entity.
Namespace
Drupal\webformCode
protected function getSubmissionRouteName() {
return strpos($this->routeMatch
->getRouteName(), 'webform.user.submissions') !== FALSE ? 'webform.user.submission' : 'webform_submission.' . $this->linkType;
}