You are here

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

Same name and namespace in other branches
  1. 8.2 modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php \Drupal\build_hooks_netlify\Plugin\FrontendEnvironment\NetlifyFrontendEnvironment::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

modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php, line 115

Class

NetlifyFrontendEnvironment
Provides a 'Netlify' frontend environment type.

Namespace

Drupal\build_hooks_netlify\Plugin\FrontendEnvironment

Code

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