TypoScript Object Prototype get controllerContext


I am trying to pass controllerContext to property processor of a TypoScript Object Prototype. I tried below code but failed
> prototype(Site:ArticleLead) < prototype(TYPO3.Neos:Content) {
> title = ${q(node).property(‘title’)}
> title.@process.iconWrap {
> expression = ${’ Link label’ + value }
> @position = ‘end’
> }
> }

I got:
> Catchable Fatal Error: Argument 3 passed to TYPO3\Neos\TypoScript\Helper\LinkHelper_Original::resolveNodeUri() must be an instance of TYPO3\Flow\Mvc\Controller\ControllerContext, null given

Any idea please?

Hmm never tried that before, but I don’t think you can use this.tsRuntime. The runtime is not exposed in TypoScript, it’s only available inside the PHP objects.

Instead I’d suggest to use the TYPO3.Neos:ConvertUris processor after your iconWrap processor.

That will convert node://uuid into links.