Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
ExceptionHalJsonSubscriber | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
getHandledFormats | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\hal\EventSubscriber\ExceptionHalJsonSubscriber. | |
*/ | |
namespace Drupal\hal\EventSubscriber; | |
use Drupal\Core\EventSubscriber\ExceptionJsonSubscriber; | |
/** | |
* Handle HAL JSON exceptions the same as JSON exceptions. | |
*/ | |
class ExceptionHalJsonSubscriber extends ExceptionJsonSubscriber { | |
/** | |
* {@inheritdoc} | |
*/ | |
protected function getHandledFormats() { | |
return ['hal_json']; | |
} | |
} |