PHP Class Neos\Neos\TypoScript\ConvertUrisImplementation

Right now node:// and asset:// are supported URI schemes. Usage:: [email protected] = 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):: [email protected] = 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:: [email protected] = Neos.Neos:ConvertUris { absolute = true }
Inheritance: extends Neos\Fusion\TypoScriptObjects\AbstractTypoScriptObject
ファイルを表示 Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$linkingService Neos\Neos\Service\LinkingService

Public Methods

Method Description
evaluate ( ) : string Convert URIs matching a supported scheme with generated URIs

Protected Methods

Method Description
replaceLinkTargets ( string $processedContent ) : string Replace the target attribute of link tags in processedContent with the target specified by externalLinkTarget and resourceLinkTarget options.

Method Details

evaluate() public method

If the workspace of the current node context is not live, no replacement will be done unless forceConversion is set. This is needed to show the editable links with metadata in the content module.
public evaluate ( ) : string
return string

replaceLinkTargets() protected method

Replace the target attribute of link tags in processedContent with the target specified by externalLinkTarget and resourceLinkTarget options.
protected replaceLinkTargets ( string $processedContent ) : string
$processedContent string
return string

Property Details

$linkingService protected_oe property

protected LinkingService,Neos\Neos\Service $linkingService
return Neos\Neos\Service\LinkingService