Skip to main content

component_references

Function component_references 

Source
pub async fn component_references(
    pool: &Pool,
    slug: &str,
) -> Result<Vec<(i64, String)>, ExecError>
Expand description

Page types whose non-archived (draft or published) schema references a component slug — returns (page_type_id, status) pairs. Used to block deletion of an in-use component.

§Errors

Propagates query failures.