1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Cache;
13
14 use Brickrouge\Popover;
15
16 /**
17 * Returns the configuration editor.
18 *
19 * The editor is obtained through the `editor` property of the cache.
20 */
21 class EditorOperation extends BaseOperation
22 {
23 protected function process()
24 {
25 $cache = $this->collection[$this->key];
26
27 return (string) new Popover(array
28 (
29 Popover::INNER_HTML => (string) $cache->editor,
30 Popover::ACTIONS => 'boolean',
31 Popover::FIT_CONTENT => true,
32
33 'class' => 'popover contrast'
34 ));
35 }
36 }