private function DeploymentForm::getChangelogView in Build Hooks 3.x
Same name and namespace in other branches
- 8.2 src/Form/DeploymentForm.php \Drupal\build_hooks\Form\DeploymentForm::getChangelogView()
Use the included view to render the changelog.
Parameters
\Drupal\build_hooks\Entity\FrontendEnvironmentInterface $environment: Environment.
Return value
array Render array.
1 call to DeploymentForm::getChangelogView()
- DeploymentForm::buildForm in src/
Form/ DeploymentForm.php - Form constructor.
File
- src/
Form/ DeploymentForm.php, line 195
Class
- DeploymentForm
- Defines a form for triggering deployments.
Namespace
Drupal\build_hooks\FormCode
private function getChangelogView(FrontendEnvironmentInterface $environment) {
/** @var \Drupal\build_hooks\DeploymentStorageHandlerInterface $deployment_storage */
$deployment_storage = $this->entityTypeManager
->getStorage('build_hooks_deployment');
$deployment = $deployment_storage
->getOrCreateNextDeploymentForEnvironment($environment);
return $this->entityTypeManager
->getViewBuilder('build_hooks_deployment')
->view($deployment);
}