public function JsonApiBuildSubscriber::__construct in JSON:API Extras 8.3
JsonApiBuildSubscriber constructor.
Parameters
\Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository $repository: Repository from jsonapi_extras is needed to apply configuration.
File
- src/
EventSubscriber/ JsonApiBuildSubscriber.php, line 30
Class
- JsonApiBuildSubscriber
- JSON API build subscriber that applies all changes from extra's to the API.
Namespace
Drupal\jsonapi_extras\EventSubscriberCode
public function __construct(ConfigurableResourceTypeRepository $repository) {
$this->repository = $repository;
}