Skip to content

Allow to check if an entry exists for a given entrypoint #100

Closed
@syl20b

Description

@syl20b

Hi,
I'd like to display script tags only if the entry exists using a Twig function like encore_entry_script_tags_if_exists.
As I know, there is actually no public method to check if an entry is defined for a given entry point.

Do you think this is possible to add such a behavior?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions