You are here

protected function WebformSubmissionListBuilder::getSubmissionRouteName in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 1144

Class

WebformSubmissionListBuilder
Provides a list controller for webform submission entity.

Namespace

Drupal\webform

Code

protected function getSubmissionRouteName() {
  return strpos($this->routeMatch
    ->getRouteName(), 'webform.user.submissions') !== FALSE ? 'webform.user.submission' : 'webform_submission.' . $this->linkType;
}