0

I created a custom search plugin for a custom entity. I would like to change the link that is presented to the user on the list of results. I had originally set it to the canonical page using $entity->url(‘canonical’), but now I want to use Url::fromRoute(), to a custom controller.

I made the appropriate changes to the plugin class, cleared cache and ran cron a few times and the search results still point to the admin canonical page. Is there something else I need to do to push the change through?

1 Answer 1

0

I waited some more, cleared cache and ran cron again and it worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.