You are here

private function DeploymentForm::getChangelogView in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x 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
Class DeploymentForm.

Namespace

Drupal\build_hooks\Form

Code

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);
}