for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of cwdFancyGridBundle
*
* (c)2017 cwd.at GmbH <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cwd\FancyGridBundle\Column;
use Cwd\FancyGridBundle\Grid\Exception\InvalidArgumentException;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\PropertyAccess\PropertyAccessor;
/**
* Class ActionType
* @package Cwd\FancyGridBundle\Column
* @author Ludwig Ruderstaler <[email protected]>
class ActionType extends AbstractColumn
{
* {@inheritdoc}
public function configureOptions(OptionsResolver $resolver)
parent::configureOptions($resolver);
$resolver->setDefaults(array(
'align' => 'right',
'searchable' => false,
'sortable' => false,
'actions' => [],
'actions_params' => [],
'filter' => false,
'template' => 'CwdFancyGridBundle:Column:actions.html.twig',
'width' => 200,
'cls' => 'grid-action',
));
$resolver->setAllowedTypes('actions', 'array');
$resolver->setAllowedTypes('actions_params', 'array');
}