PHP Класс 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)
Наследование: implements TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$defaultPackageKey string The default package key to use when rendering resource links without a package key in the source URL.

Открытые методы

Метод Описание
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.

Описание методов

getInterceptionPoints() публичный Метод

This interceptor wants to hook into text nodes.
public getInterceptionPoints ( ) : array
Результат array Array of INTERCEPT_* constants

process() публичный Метод

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.
Результат TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface the modified node

setDefaultPackageKey() публичный Метод

Set the default package key to use for resource URIs.
public setDefaultPackageKey ( string $defaultPackageKey ) : void
$defaultPackageKey string
Результат void

Описание свойств

$defaultPackageKey защищенное свойство

The default package key to use when rendering resource links without a package key in the source URL.
protected string $defaultPackageKey
Результат string