You are here

public function ProdCheckModulesResource::get in Production check & Production monitor 8

Return value

ResourceResponse

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\resource

Code

public function get() {
  return new ResourceResponse(\Drupal::service('extension.list.module')
    ->getAllInstalledInfo(), 200);
}