| 1 | <?php |
||
| 22 | class LoopHelperPluginManager extends AbstractPluginManager |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Default set of helpers |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $invokableClasses = [ |
||
| 30 | 'webinodrawloopitemproperty' => 'WebinoDraw\Draw\LoopHelper\ItemProperty', |
||
| 31 | 'webinodrawloopelementwrapper' => 'WebinoDraw\Draw\LoopHelper\ElementWrapper', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Validate the plugin |
||
| 36 | * |
||
| 37 | * Checks that the loop helper loaded is an instance of LoopHelper\HelperInterface. |
||
| 38 | * |
||
| 39 | * @param mixed $plugin |
||
| 40 | * @throws InvalidHelperException If invalid |
||
| 41 | */ |
||
| 42 | public function validatePlugin($plugin) |
||
| 57 | } |
||
| 58 |