fsi-open/datagrid — pull request #54 by chives (2014-09-09 10:51:23+00:00)
Title: Added getActionOptionsResolver() to both Action column types

This addition will allow column type extensions (of action column type) to add and/or modify not only column options but also single action options.

```php
class SomeActionExtension extends ColumnAbstractTypeExtension
{
public function getExtendedColumnType()
{
return 'action';
}

public function initOptions(ColumnTypeInterface $column)
{
$column->getActionOptionsResolver()->setDefaults(array('custom_action_option' => false));
$column->getActionOptionsResolver()->setAllowedTypes(array('custom_action_option' => 'bool'));
}

public function filterValue(ColumnTypeInterface $column, $value)
{
$actions = $column->getOption('actions');
foreach ($actions as $name => $options) {
$options = $column->getActionOptionsResolver()->resolve((array) $options);
// do something with $options['custom_action_option'] for example modify $value or other action options
}

return parent::filterValue($column, $value);
}
}
```