Drupal\helper\Controller\ToolbarController
Toolbar controller.
Implements:
Drupal\Core\DependencyInjection\ContainerInjectionInterface
Extend:
Drupal\Core\Controller\ControllerBase
Methods
| Name | Description |
|---|---|
| __construct | Constructs a ToolbarController object. |
| flushBootstrap | Flush the bootstrap cache. |
| flushLibraries | Flush the libraries (and CSS/JS) cache. |
| flushPhp | Flush the PHP caches. |
| reloadPage | Reload the previous page. |
Inherited methods
| Name | Description |
|---|---|
| create | Instantiates a new instance of the implementing class using autowiring. |
| createInstanceAutowired | Instantiates a new instance of the implementing class using autowiring. |
| messenger | Gets the messenger. |
| setLoggerFactory | Injects the logger channel factory. |
| setMessenger | Sets the messenger. |
| setRedirectDestination | Sets the redirect destination service. |
| setStringTranslation | Sets the string translation service to use. |
ToolbarController::__construct
Description
public __construct (\Symfony\Component\HttpFoundation\RequestStack $request_stack)
Constructs a ToolbarController object.
Parameters
(\Symfony\Component\HttpFoundation\RequestStack) $request_stack:
A request stack symfony instance.
Return Values
void
ToolbarController::flushBootstrap
Description
public flushBootstrap (void)
Flush the bootstrap cache.
Parameters
This function has no parameters.
Return Values
\Symfony\Component\HttpFoundation\RedirectResponse
Reloads the page.
ToolbarController::flushLibraries
Description
public flushLibraries (void)
Flush the libraries (and CSS/JS) cache.
Parameters
This function has no parameters.
Return Values
\Symfony\Component\HttpFoundation\RedirectResponse
Reloads the page.
ToolbarController::flushPhp
Description
public flushPhp (void)
Flush the PHP caches.
Parameters
This function has no parameters.
Return Values
\Symfony\Component\HttpFoundation\RedirectResponse
Reloads the page.
ToolbarController::reloadPage
Description
public reloadPage (void)
Reload the previous page.
Parameters
This function has no parameters.
Return Values
void