| 1 | <?php |
||
| 18 | class GridButtonPluginManager extends AbstractPluginManager |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | protected $shareByDefault = false; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $aliases = [ |
||
| 29 | 'simple' => Simple::class, |
||
| 30 | 'expandall' => ExpandAll::class, |
||
| 31 | 'collapseall' => CollapseAll::class, |
||
| 32 | 'showhidecolumns' => ShowHideColumns::class, |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $invokableClasses = [ |
||
| 39 | |||
| 40 | ]; |
||
| 41 | |||
| 42 | protected $factories = [ |
||
| 43 | Simple::class => Factory::class, |
||
| 44 | ExpandAll::class => Factory::class, |
||
| 45 | CollapseAll::class => Factory::class, |
||
| 46 | ShowHideColumns::class => Factory::class, |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Validate the plugin |
||
| 51 | * |
||
| 52 | * Checks that the filter loaded is either a valid callback or an instance |
||
| 53 | * of FilterInterface. |
||
| 54 | * |
||
| 55 | * @param mixed $plugin |
||
| 56 | * @return void |
||
| 57 | * @throws Exception\RuntimeException if invalid |
||
| 58 | */ |
||
| 59 | public function validatePlugin($plugin) |
||
| 67 | } |
||
|
|
|||
| 68 |
This check marks files that end in a newline character, i.e. an empy line.