FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper::initializeArguments PHP Метод

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

public initializeArguments ( ) : void
Результат void
    public function initializeArguments()
    {
        $this->registerArgument('content', 'string', 'Content to insert in header/footer');
        $this->registerArgument('path', 'string', 'If not using tag content, specify path to file here');
        $this->registerArgument('external', 'boolean', 'If TRUE and standalone, includes the file as raw URL. If TRUE and not standalone then downloads ' . 'the file and merges it when building Assets', false, false);
        $this->registerArgument('name', 'string', 'Optional name of the content. If multiple occurrences of the same name happens, behavior is defined ' . 'by argument "overwrite"');
        $this->registerArgument('overwrite', 'boolean', 'If set to FALSE and a relocated string with "name" already exists, does not overwrite the existing ' . 'relocated string. Default behavior is to overwrite.', false, true);
        $this->registerArgument('dependencies', 'string', 'CSV list of other named assets upon which this asset depends. When included, this asset will always ' . 'load after its dependencies');
        $this->registerArgument('group', 'string', 'Optional name of a logical group (created dynamically just by using the name) to which this particular ' . 'asset belongs.', false, 'fluid');
        $this->registerArgument('debug', 'boolean', 'If TRUE, outputs information about this ViewHelper when the tag is used. Two master debug switches ' . 'exist in TypoScript; see documentation about Page / Asset ViewHelper');
        $this->registerArgument('standalone', 'boolean', 'If TRUE, excludes this Asset from any concatenation which may be applied');
        $this->registerArgument('rewrite', 'boolean', 'If FALSE, this Asset will be included as is without any processing of contained urls', false, true);
        $this->registerArgument('fluid', 'boolean', 'If TRUE, renders this (standalone or external) Asset as if it were a Fluid template, passing along ' . 'values of the "variables" attribute or every available template variable if "variables" not specified', false, false);
        $this->registerArgument('variables', 'mixed', 'An optional array of arguments which you use inside the Asset, be it standalone or inline. Use this ' . 'argument to ensure your Asset filenames are only reused when all variables used in the Asset are the same', false, false);
        $this->registerArgument('movable', 'boolean', 'If TRUE, allows this Asset to be included in the document footer rather than the header. Should never ' . 'be allowed for CSS.', false, true);
        $this->registerArgument('trim', 'boolean', 'DEPRECATED. Trim is no longer supported. Setting this to TRUE doesn\'t do anything.', false, false);
        $this->registerArgument('namedChunks', 'boolean', 'If FALSE, hides the comment containing the name of each of Assets which is merged in a merged file. ' . 'Disable to avoid a bit more output at the cost of transparency', false, false);
    }

Usage Example

Пример #1
0
 /**
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('domains', 'mixed', 'Domain DNS names to prefetch. By default will add all sys_domain record DNS names', true);
     $this->registerArgument('protocol', 'string', 'Optional value of protocol as inserted in the resulting HREF value. If you experience problems with ' . 'a non-protocol link, try enforcing http/https here');
     $this->registerArgument('protocolSeparator', 'string', 'If you do not enforce a particular protocol and wish to remove the double slashes from the hostname ' . '(your browser may not understand this!), set this attribute to an empty value (not-zero)', false, '//');
     $this->registerArgument('force', 'boolean', 'If TRUE, adds an additional meta header tag which forces prefetching to be enabled even if otherwise ' . 'requested by the http daemon', false, false);
 }
All Usage Examples Of FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper::initializeArguments