Skip to content

Disable "Link to an entry" option? #239

Answered by i-just
mandrasch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there’s EVENT_DEFINE_LINK_OPTIONS, which you can use to do the same thing.

Event::on(
    Field::class,
    Field::EVENT_DEFINE_LINK_OPTIONS,
    function (DefineLinkOptionsEvent $event) {
        // remove or add link options here
    }
);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mandrasch
Comment options

Answer selected by mandrasch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants