You are here

public function DeploymentStorageHandlerInterface::getLastDeploymentForEnvironment in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 src/DeploymentStorageHandlerInterface.php \Drupal\build_hooks\DeploymentStorageHandlerInterface::getLastDeploymentForEnvironment()

Gets the last deployment for an environment.

Parameters

\Drupal\build_hooks\Entity\FrontendEnvironmentInterface $environment: Environment.

Return value

\Drupal\build_hooks\Entity\DeploymentInterface|null Last deployment if it exists.

1 method overrides DeploymentStorageHandlerInterface::getLastDeploymentForEnvironment()
DeploymentStorageHandler::getLastDeploymentForEnvironment in src/DeploymentStorageHandler.php
Gets the last deployment for an environment.

File

src/DeploymentStorageHandlerInterface.php, line 34

Class

DeploymentStorageHandlerInterface
Defines an interface for deployment storage handler.

Namespace

Drupal\build_hooks

Code

public function getLastDeploymentForEnvironment(FrontendEnvironmentInterface $environment) : ?DeploymentInterface;