-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFluidCacheRegenerateCacheAction.php
More file actions
29 lines (25 loc) · 999 Bytes
/
FluidCacheRegenerateCacheAction.php
File metadata and controls
29 lines (25 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace NamelessCoder\CmsFluidPrecompilerModule\ClearCacheMenu;
use TYPO3\CMS\Backend\Routing\UriBuilder;
use TYPO3\CMS\Backend\Toolbar\ClearCacheActionsHookInterface;
/**
* Class FluidCacheRegenerateCacheAction
*/
class FluidCacheRegenerateCacheAction implements ClearCacheActionsHookInterface
{
/**
* @param array $cacheActions
* @param array $optionValues
* @return void
*/
public function manipulateCacheActions(&$cacheActions, &$optionValues)
{
$cacheActions[] = [
'id' => 'fluid-cache-regenerate',
'title' => 'LLL:EXT:cms_fluid_precompiler_module/Resources/Private/Language/locallang.xlf:cachemenuitem.title',
'description' => 'LLL:EXT:cms_fluid_precompiler_module/Resources/Private/Language/locallang.xlf:cachemenuitem.description',
'href' => (new UriBuilder())->buildUriFromRoute('fluid_precompile'),
'iconIdentifier' => 'fluid-precompile-cache-menu-action'
];
}
}