You are here

NetlifyManagerInterface.php in Build Hooks 3.x

Same filename and directory in other branches
  1. 8.2 modules/build_hooks_netlify/src/NetlifyManagerInterface.php

File

modules/build_hooks_netlify/src/NetlifyManagerInterface.php
View source
<?php

namespace Drupal\build_hooks_netlify;


/**
 * NetlifyManager interface.
 */
interface NetlifyManagerInterface {

  /**
   * Converts the datetime format into a drupal formatted date.
   *
   * @param string $datetime
   *   Date in the format returned by the Netlify api.
   *
   * @return string
   *   Drupal formatted date.
   */
  public function formatNetlifyDateTime($datetime);

  /**
   * Get the latest builds from netlify for and environment.
   *
   * @param array $settings
   *   The plugin settings array.
   * @param int $limit
   *   Number of desired builds to retrieve.
   *
   * @return array
   *   An array with info about the builds.
   *
   * @throws \GuzzleHttp\Exception\GuzzleException
   */
  public function retrieveLatestBuildsFromNetlifyForEnvironment(array $settings, $limit = 1);

}

Interfaces

Namesort descending Description
NetlifyManagerInterface NetlifyManager interface.