public function ProdCheckModulesResource::get in Production check & Production monitor 8
Return value
File
- modules/
prod_check_rest/ src/ Plugin/ rest/ resource/ ProdCheckModulesResource.php, line 24
Class
- ProdCheckModulesResource
- Provides a resource to list all the active modules
Namespace
Drupal\prod_check_rest\Plugin\rest\resourceCode
public function get() {
return new ResourceResponse(\Drupal::service('extension.list.module')
->getAllInstalledInfo(), 200);
}