public function ContentHelpController::about in Content Synchronization 8
Same name and namespace in other branches
- 8.2 src/Controller/ContentHelpController.php \Drupal\content_sync\Controller\ContentHelpController::about()
- 3.0.x src/Controller/ContentHelpController.php \Drupal\content_sync\Controller\ContentHelpController::about()
Returns dedicated help about (aka How can we help you?) page.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request.
Return value
array A renderable array containing a help about (aka How can we help you?) page.
1 string reference to 'ContentHelpController::about'
File
- src/
Controller/ ContentHelpController.php, line 52
Class
- ContentHelpController
- Provides route responses for content_sync help.
Namespace
Drupal\content_sync\ControllerCode
public function about(Request $request) {
$build = $this->helpManager
->buildAbout();
unset($build['title']);
$build += [
'#prefix' => '<div class="content_sync-help">',
'#suffix' => '</div>',
];
$build['#attached']['library'][] = 'content_sync/content_sync.help';
return $build;
}