forked from mtcextendee/mautic-sql-conditions-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SqlConditionsPermissions.php
48 lines (42 loc) · 1.08 KB
/
SqlConditionsPermissions.php
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
<?php
/*
* @copyright 2019 Mautic, Inc. All rights reserved
* @author Mautic, Inc
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace MauticPlugin\MauticSqlConditionsBundle\Security\Permissions;
use Mautic\CoreBundle\Security\Permissions\AbstractPermissions;
use Symfony\Component\Form\FormBuilderInterface;
class SqlConditionsPermissions extends AbstractPermissions
{
/**
* {@inheritdoc}
*/
public function __construct($params)
{
parent::__construct($params);
$this->addExtendedPermissions('sqlConditions');
}
/**
* {@inheritdoc}
*
* @return string|void
*/
public function getName()
{
return 'sqlConditions';
}
/**
* {@inheritdoc}
*
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface &$builder, array $options, array $data)
{
$this->addExtendedFormFields('sqlConditions', 'sqlConditions', $builder, $data);
}
}