| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class ModalDeliveryProvider extends PluginBase implements DeliveryProviderInterface { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function navigate(AjaxResponse $response, $title, $contents) { |
||
| 28 | $response->setAttachments([ |
||
| 29 | 'library' => [ |
||
| 30 | 'core/drupal.dialog.ajax', |
||
| 31 | ], |
||
| 32 | ]); |
||
| 33 | $response->addCommand(new OpenModalCommand($title, $contents, $this->context)); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function close(AjaxResponse $response) { |
||
| 40 | $response->addCommand(new CloseModalCommand($this->context)); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function sendData(AjaxResponse $response, WidgetBinderData $data) { |
||
| 48 | } |
||
| 49 | |||
| 50 | } |
||
| 51 |