Right now node:// and asset:// are supported URI schemes. Usage:: someTextProperty.@process.1 = Neos.Neos:ConvertUris The optional property forceConversion can be used to have the links converted even when not rendering the live workspace. This is used for links that are not inline editable (for example links on images):: someTextProperty.@process.1 = Neos.Neos:ConvertUris { forceConversion = true } The optional property externalLinkTarget can be modified to disable or change the target attribute of the link tag for links to external targets:: prototype(Neos.Neos:ConvertUris) { externalLinkTarget = '_blank' resourceLinkTarget = '_blank' } The optional property absolute can be used to convert node uris to absolute links:: someTextProperty.@process.1 = Neos.Neos:ConvertUris { absolute = true }
Наследование: extends Neos\Fusion\TypoScriptObjects\AbstractTypoScriptObject
 /**
  * This test checks that targets for resource links are correctly replaced
  *
  * @test
  */
 public function evaluateReplaceResourceLinkTargets()
 {
     $assetIdentifier = 'aeabe76a-551a-495f-a324-ad9a86b2aff8';
     $resourceLinkTarget = '_blank';
     $value = 'This string contains two asset links and an external link: one with a target set <a target="top" href="asset://' . $assetIdentifier . '">example</a> and one without a target <a href="asset://' . $assetIdentifier . '">example2</a> and an external link <a href="http://www.example.org">example3</a>';
     $this->addValueExpectation($value, null, false, null, $resourceLinkTarget);
     $this->mockWorkspace->expects($this->any())->method('getName')->will($this->returnValue('live'));
     $self = $this;
     $this->mockLinkingService->expects($this->atLeastOnce())->method('resolveAssetUri')->will($this->returnCallback(function ($assetUri) use($self, $assetIdentifier) {
         if ($assetUri !== 'asset://' . $assetIdentifier) {
             $self->fail('Unexpected asset URI "' . $assetUri . '"');
         }
         return 'http://localhost/_Resources/01';
     }));
     $expectedResult = 'This string contains two asset links and an external link: one with a target set <a target="' . $resourceLinkTarget . '" href="http://localhost/_Resources/01">example</a> and one without a target <a target="' . $resourceLinkTarget . '" href="http://localhost/_Resources/01">example2</a> and an external link <a href="http://www.example.org">example3</a>';
     $actualResult = $this->convertUrisImplementation->evaluate();
     $this->assertSame($expectedResult, $actualResult);
 }