You are here

public function GenericFrontendEnvironment::getBuildHookDetails in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/FrontendEnvironment/GenericFrontendEnvironment.php \Drupal\build_hooks\Plugin\FrontendEnvironment\GenericFrontendEnvironment::getBuildHookDetails()

Get the info to trigger the hook based on the configuration of the plugin.

Return value

\Drupal\build_hooks\BuildHookDetails An object containing the details to trigger the hook.

Overrides FrontendEnvironmentInterface::getBuildHookDetails

File

src/Plugin/FrontendEnvironment/GenericFrontendEnvironment.php, line 54

Class

GenericFrontendEnvironment
Provides a 'Generic' frontend environment type.

Namespace

Drupal\build_hooks\Plugin\FrontendEnvironment

Code

public function getBuildHookDetails() {
  $buildHookDetails = new BuildHookDetails();
  $buildHookDetails
    ->setUrl($this->configuration['build_hook_url']);
  $buildHookDetails
    ->setMethod('POST');
  return $buildHookDetails;
}