You are here

interface NetlifyManagerInterface in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x modules/build_hooks_netlify/src/NetlifyManagerInterface.php \Drupal\build_hooks_netlify\NetlifyManagerInterface

NetlifyManager interface.

Hierarchy

Expanded class hierarchy of NetlifyManagerInterface

All classes that implement NetlifyManagerInterface

File

modules/build_hooks_netlify/src/NetlifyManagerInterface.php, line 8

Namespace

Drupal\build_hooks_netlify
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
NetlifyManagerInterface::formatNetlifyDateTime public function Converts the datetime format into a drupal formatted date. 1
NetlifyManagerInterface::retrieveLatestBuildsFromNetlifyForEnvironment public function Get the latest builds from netlify for and environment. 1