-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (40 loc) · 1.52 KB
/
index.php
File metadata and controls
46 lines (40 loc) · 1.52 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/*
* This file is part of the Sylius package.
*
* (c) Sylius Sp. z o.o.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use App\Twig\Component\SpeakerDataTableComponent;
use App\Twig\Component\SpeakerGridComponent;
return static function (ContainerConfigurator $container): void {
$container->extension('sylius_twig_hooks', [
'hooks' => [
'sylius_admin.speaker.index.content.header.title_block' => [
'title' => [
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content/header/title_block/title.html.twig',
'configuration' => [
'title' => 'app.ui.browsing_speakers',
'icon' => 'tabler:users',
'subheader' => 'app.ui.managing_your_speakers',
],
],
],
'sylius_admin.speaker.index.content.grid' => [
'data_table' => [
'component' => SpeakerDataTableComponent::class,
'props' => [
'page' => '@=_context.page',
'limit' => '@=_context.limit',
'criteria' => '@=_context.criteria',
'sorting' => '@=_context.sorting',
],
],
],
],
]);
};