function ApiController::finish

Performs post-apply tasks and destroys the stage.

Parameters

string $id: The stage ID.

Return value

\Symfony\Component\HttpFoundation\Response The response.

1 string reference to 'ApiController::finish'
package_manager_test_api.routing.yml in core/modules/package_manager/tests/modules/package_manager_test_api/package_manager_test_api.routing.yml
core/modules/package_manager/tests/modules/package_manager_test_api/package_manager_test_api.routing.yml

File

core/modules/package_manager/tests/modules/package_manager_test_api/src/ApiController.php, line 92

Class

ApiController
Provides API endpoints to interact with a stage directory in functional test.

Namespace

Drupal\package_manager_test_api

Code

public function finish(string $id) : Response {
  $this->stage
    ->claim($id)
    ->postApply();
  $this->stage
    ->destroy();
  return new Response('Finished');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.