7

In some PathProcessor classes there is a processOutbound method which is from the OutboundPathProcessorInterface. The API for that method simply says:

Processes the outbound path.

What is the outbound path? What is it for? What does it do?

  • 2
    Outbound path processor can alter rendered "links". Inbound path processor can re-route requests. For example url alias /foo-bar will lead to /node/1 – user21641 Oct 3 '17 at 9:35
10

Inbound path processing is used for incoming requests to the site. Outbound path processing is used when generating URL's, doesn't matter if it is outside of the site or not, in fact it would be very uncommon to use it for those kind of links.

The most obvious example is language negotation path prefix/domain, on an incoming request to en/node/1, inbound path processing removes "en" and sets the current language to english, when generating a linke to "node/1", path outbound processing adds the en/ prefix based on the current or provided language.

| improve this answer | |
  • I thought that might be the case but I wanted to be sure, thanks! – Darvanen Oct 3 '17 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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