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)
显示文件
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.
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.
Property Details
$defaultPackageKey protected_oe property
The default package key to use when rendering resource links without a
package key in the source URL.
protected string $defaultPackageKey |
return |
string |
|