36 lines
891 B
PHP
36 lines
891 B
PHP
<?php
|
|
namespace FluidTYPO3\Vhs\ViewHelpers\Asset;
|
|
|
|
/*
|
|
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
|
|
*
|
|
* For the full copyright and license information, please read the
|
|
* LICENSE.md file that was distributed with this source code.
|
|
*/
|
|
|
|
/**
|
|
* ### Basic Style ViewHelper
|
|
*
|
|
* Allows inserting a `<link>` or `<style>` Asset. Settings
|
|
* specify where to insert the Asset and how to treat it.
|
|
*
|
|
* @package Vhs
|
|
* @subpackage ViewHelpers\Asset
|
|
*/
|
|
class StyleViewHelper extends AbstractAssetViewHelper {
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function initializeArguments() {
|
|
parent::initializeArguments();
|
|
$this->overrideArgument('allowMoveToFooter', 'boolean', 'If TRUE, allows this Asset to be included in the document footer rather than the header. Should never be allowed for CSS.', FALSE, FALSE);
|
|
}
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $type = 'css';
|
|
|
|
}
|