Skip to content

ToolbarController

Toolbar controller.


  • Full name: \Drupal\helper\Controller\ToolbarController
  • Parent class: ControllerBase

Properties

requestStack

A request stack symfony instance.

protected \Symfony\Component\HttpFoundation\RequestStack $requestStack

Methods

__construct

Constructs a ToolbarController object.

public __construct(\Symfony\Component\HttpFoundation\RequestStack $request_stack): mixed

Parameters:

Parameter Type Description
$request_stack \Symfony\Component\HttpFoundation\RequestStack
A request stack symfony instance.

create

{@inheritdoc}

public static create(\Symfony\Component\DependencyInjection\ContainerInterface $container): mixed
  • This method is static. Parameters:
Parameter Type Description
$container \Symfony\Component\DependencyInjection\ContainerInterface

reloadPage

Reload the previous page.

public reloadPage(): mixed

flushPhp

Flush the PHP caches.

public flushPhp(): \Symfony\Component\HttpFoundation\RedirectResponse

Return Value:

Reloads the page.


flushLibraries

Flush the libraries (and CSS/JS) cache.

public flushLibraries(): \Symfony\Component\HttpFoundation\RedirectResponse

Return Value:

Reloads the page.


flushBootstrap

Flush the bootstrap cache.

public flushBootstrap(): \Symfony\Component\HttpFoundation\RedirectResponse

Return Value:

Reloads the page.