<?php


return [
	'views' => [
		[
			'id' => 1,
			'sort' => 1,
			'treetype' => 'object',
			'name' => 'News(pl)',
			'condition' => null,
			'icon' => '/bundles/pimcoreadmin/img/flat-white-icons/news.svg',
			'rootfolder' => '/novinky',
			'showroot' => true,
			'classes' => 'news',
			'position' => 'left',
			'expanded' => false,
			'treeContextMenu' => [
				'object' => [
					'items' => [
						'addFolder' => 0,
						'importCsv' => 0,
						'lock' => 0,
						'unlock' => 0,
						'lockAndPropagate' => 0,
						'unlockAndPropagete' => 0,
						'searchAndMove' => 0,
					],
				],
			],
			'extension' => [
				'elementRestrictions' => [
					[
						'path' => '/novinky',                               # this set of restrictions will apply on this path and any children
						'restrictFolder' => '1',                            # will also prevent any folder to be moved in here
						'forbiddenClasses' => 'news',                          # will hide classes allowed by 'classes', but you will be able to condionally enable them, see below
						'conditionallyAllowedClasses' => '{"folder":["news"]}',  # will conditially enable classes {"folder":[allowedClassIds], "ClassName":[allowedClassIds]}
					],
				],
			],
		],
		[
			'id' => 2,
			'sort' => 2,
			'treetype' => 'object',
			'name' => 'Contact',
			'condition' => null,
			'icon' => '/bundles/pimcoreadmin/img/flat-white-icons/email.svg',
			'rootfolder' => '/kontakt',
			'showroot' => false,
			'classes' => 'contact_form,newsletter_form',
			'position' => 'left',
			'expanded' => false,
			'treeContextMenu' => [
				'object' => [
					'items' => [
						'addFolder' => 0,
						'importCsv' => 0,
						'lock' => 0,
						'unlock' => 0,
						'lockAndPropagate' => 0,
						'unlockAndPropagete' => 0,
						'searchAndMove' => 0,
					],
				],
			],
			'extension' => [
				'elementRestrictions' => [
					[
						'path' => '/kontakt',
						'restrictFolder' => '1',
						'forbiddenClasses' => 'contact_form,newsletter_form',
					],
				],
			],
		],
		[
			'id' => 3,
			'sort' => 3,
			'treetype' => 'object',
			'name' => 'Users',
			'condition' => null,
			'icon' => '/bundles/pimcoreadmin/img/flat-white-icons/manager.svg',
			'rootfolder' => '/uzivatele',
			'showroot' => true,
			'classes' => 'user',
			'position' => 'left',
			'expanded' => false,
			'treeContextMenu' => [
				'object' => [
					'items' => [
						'addFolder' => 0,
						'importCsv' => 0,
						'lock' => 0,
						'unlock' => 0,
						'lockAndPropagate' => 0,
						'unlockAndPropagete' => 0,
						'searchAndMove' => 0,
					],
				],
			],
			'extension' => [
				'elementRestrictions' => [
					[
						'path' => '/uzivatele',
						'restrictFolder' => '1',
						'forbiddenClasses' => 'user',
					],
				],
			],
		],
	],
];
