-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCampaignCommtool.php
More file actions
51 lines (42 loc) · 1.27 KB
/
CampaignCommtool.php
File metadata and controls
51 lines (42 loc) · 1.27 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
47
48
49
50
51
<?php
namespace Optime\Bundle\CommtoolBundle;
use Optime\Bundle\CommtoolBundle\AbstractCommtoolBuilder;
use Optime\Bundle\CommtoolBundle\Builder\BuilderInterface;
class CampaignCommtool extends AbstractCommtoolBuilder
{
public function build(BuilderInterface $builder, array $options = array())
{
$builder->addNamed('logo_ppal', 'image', array(
'bind' => array(
'click' => 'get_gallery_ppal'
),
));
$builder->addNamed('ppal', 'image', array(
'bind' => array(
'click' => 'get_gallery_theme'
),
));
$builder->add('singleline', array(
'bind' => array(
'click' => 'mi_function'
),
));
$builder->addNamed('loop', 'singleline');
$builder->add('multiline');
$builder->addNamed('singleline', 'loop', array(
'type' => 'singleline',
'children_options' => array(
'bind' => array(
'click' => 'HOLA'
),
),
'bind' => array(
'click' => 'show_data'
),
));
}
public function getLayout()
{
return 'OptimeCommtoolBundle::campaign_layout.html.twig';
}
}