PHP Class Neos\FluidAdaptor\Core\Parser\Interceptor\ResourceInterceptor

That means you can build your template so that it can be previewed as is and pointers to CSS, JS, images, ... will still work when the resources are mirrored by Flow. Currently the supported URIs are of the form [../]Public/Some/ (will use current package) [../]/Resources/Public/ (will use given package)
Inheritance: implements TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$defaultPackageKey string The default package key to use when rendering resource links without a package key in the source URL.

Public Methods

Method Description
getInterceptionPoints ( ) : array This interceptor wants to hook into text nodes.
process ( TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface $node, integer $interceptorPosition, TYPO3Fluid\Fluid\Core\Parser\ParsingState $parsingState ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface Looks for URIs pointing to package resources and in place of those adds ViewHelperNode instances using the ResourceViewHelper.
setDefaultPackageKey ( string $defaultPackageKey ) : void Set the default package key to use for resource URIs.

Method Details

getInterceptionPoints() public method

This interceptor wants to hook into text nodes.
public getInterceptionPoints ( ) : array
return array Array of INTERCEPT_* constants

process() public method

Looks for URIs pointing to package resources and in place of those adds ViewHelperNode instances using the ResourceViewHelper.
public process ( TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface $node, integer $interceptorPosition, TYPO3Fluid\Fluid\Core\Parser\ParsingState $parsingState ) : TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface
$node TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface
$interceptorPosition integer One of the INTERCEPT_* constants for the current interception point
$parsingState TYPO3Fluid\Fluid\Core\Parser\ParsingState the current parsing state. Not needed in this interceptor.
return TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface the modified node

setDefaultPackageKey() public method

Set the default package key to use for resource URIs.
public setDefaultPackageKey ( string $defaultPackageKey ) : void
$defaultPackageKey string
return void

Property Details

$defaultPackageKey protected property

The default package key to use when rendering resource links without a package key in the source URL.
protected string $defaultPackageKey
return string