sulu_content_load_parentΒΆ

Return the parent of the Structure with the given UUID

{% set page = sulu_content_load_parent('1234-1234-1234-1234-1234') %}

Arguments:

  • uuid: string - UUID of structure parent

Returns:

  • array
    • content: Content of page

    • view: View of page

    • extension: Extensions of page

    • uuid: UUID of page

    • template: Template name of page

    • changed: Changed date of page

    • changer: User ID of changer

    • created: Date of creation

    • creator: User ID of creator

    • path: Path of page

    • urls: Urls of page

    • published: Publish date of page

    • shadowBaseLocale: Shadow locale of page

Note

The sulu_content_load_parent twig extension loads and resolves the whole page content. This is an expensive operation and can have a negative impact on the performance of the page. If possible, the extension should be avoided.