module Scrivito module Backend module PermalinkIndex class << self include Backend::Index def id "permalink" end def query(keys) [{ field: '_permalink', operator: :equals, value: keys }] end def extract_update_value_from_data(data) data["_permalink"] end end end end end