You are here

public function GatsbyPreview::updateData in Gatsby Live Preview & Incremental Builds 8

Same name and namespace in other branches
  1. 2.0.x src/GatsbyPreview.php \Drupal\gatsby\GatsbyPreview::updateData()

Updates Gatsby Data array.

4 calls to GatsbyPreview::updateData()
GatsbyInstantPreview::gatsbyPrepareData in modules/gatsby_instantpreview/src/GatsbyInstantPreview.php
Prepares Gatsby Data to send to the preview and build servers.
GatsbyInstantPreview::gatsbyPrepareDelete in modules/gatsby_instantpreview/src/GatsbyInstantPreview.php
Triggers the refreshing of Gatsby preview and incremental builds.
GatsbyPreview::gatsbyPrepareData in src/GatsbyPreview.php
Prepares Gatsby Data to send to the preview and build servers.
GatsbyPreview::gatsbyPrepareDelete in src/GatsbyPreview.php
Prepares Gatsby Deletes to send to the preview and build servers.

File

src/GatsbyPreview.php, line 71

Class

GatsbyPreview
Defines a class for generating Gatsby based previews.

Namespace

Drupal\gatsby

Code

public function updateData($key, $url, $json = FALSE, $preview_path = "") {
  self::$updateData[$key][$url] = [
    'url' => $url,
    'json' => $json,
    'path' => $preview_path,
  ];
}