You are here

public function WebformCompositeController::sourceTitle in Webform Composite Tools 8

Webform composite source route title callback.

Parameters

\Drupal\webform_composite\WebformCompositeInterface $webform_composite: The webform composite.

Return value

string The webform composite label as a render array.

1 string reference to 'WebformCompositeController::sourceTitle'
webform_composite.routing.yml in ./webform_composite.routing.yml
webform_composite.routing.yml

File

src/Controller/WebformCompositeController.php, line 35

Class

WebformCompositeController
Provides route responses for webform options.

Namespace

Drupal\webform_composite\Controller

Code

public function sourceTitle(WebformCompositeInterface $webform_composite) {
  return 'Edit ' . $webform_composite
    ->label() . ' Source';
}