You are here

function _gatsby_update in Gatsby Live Preview & Incremental Builds 2.0.x

Same name and namespace in other branches
  1. 8 gatsby.module \_gatsby_update()

Triggers the update to the Gatsby Preview and Incremental Builds servers.

3 string references to '_gatsby_update'
gatsby_entity_delete in ./gatsby.module
Implements hook_entity_delete().
gatsby_entity_insert in ./gatsby.module
Implements hook_entity_insert().
gatsby_entity_update in ./gatsby.module
Implements hook_entity_update().

File

./gatsby.module, line 254
Contains gatsby.module.

Code

function _gatsby_update() {
  $gatsbyPreview = \Drupal::service('gatsby.gatsby_preview');
  $gatsbyPreview
    ->gatsbyUpdate();
}