Feature: #94889 - Add "result" option to typolink returnLast parameter
See forge#94889
Description
This change introduces a new \TYPO3\
object along with an
interface, containing the base result of a generated link by TypoLink.
This object should contain all information needed to put together
an <a>
tag or return a URL in the future.
For the time being this new class is used to build links from
\TYPO3\
implementations, and in addition
should be able to be returned fully by typolink
in the future.
In addition, this object helps to build links needed for e.g. JSON responses to contain all information of the link to be serialized.
Impact
This feature allows user to handle link's data in more consistent way, also simplifies typolink handling in different outputs than HTML, like i.e. JSON