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\Contents;
13
14 class Module extends \Icybee\Modules\Nodes\Module
15 {
16 const OPERATION_HOME_INCLUDE = 'home_include';
17 const OPERATION_HOME_EXCLUDE = 'home_exclude';
18
19 /**
20 * Overrides the "view", "list" and "home" views to provide different providers.
21 */
22 protected function lazy_get_views()
23 {
24 $options = [
25
26 'assets' => [
27
28 'css' => [ DIR . 'public/page.css' ]
29 ],
30
31 'provider' => __NAMESPACE__ . '\ViewProvider'
32 ];
33
34 return \ICanBoogie\array_merge_recursive(parent::lazy_get_views(), [
35
36 'view' => $options,
37 'list' => $options,
38 'home' => $options
39
40 ]);
41 }
42 }