PHP Class Neos\Neos\Fusion\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\FusionObjects\AbstractFusionObject
Afficher le fichier Open project: neos/neos Class Usage Examples

Protected Properties

Свойство Type Description
$linkingService Neos\Neos\Service\LinkingService

Méthodes publiques

Méthode Description
evaluate ( ) : string Convert URIs matching a supported scheme with generated URIs

Méthodes protégées

Méthode 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 méthode

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
Résultat string

replaceLinkTargets() protected méthode

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
Résultat string

Property Details

$linkingService protected_oe property

protected LinkingService,Neos\Neos\Service $linkingService
Résultat Neos\Neos\Service\LinkingService