You are here

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

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

Gets an array of Gatsby Preview path mappings.

Deprecated

in gatsby:8.x-2.0 and is removed from gatsby:8.x-3.0. Use \Drupal\gatsby\PathMapping::getPathMapping().

See also

https://www.drupal.org/node/3203580

File

./gatsby.module, line 280
Contains gatsby.module.

Code

function _gatsby_get_path_mapping() {
  @trigger_error('_gatsby_get_path() is deprecated in gatsby:8.x-2.0 and is removed from gatsby:8.x-3.0. Use \\Drupal\\gatsby\\PathMapping::getPathMapping(). See https://www.drupal.org/node/3203580', E_USER_DEPRECATED);
  return PathMapping::parsePathMapping(\Drupal::config('gatsby.settings')
    ->get('path_mapping'));
}