Source of file HeadStyle.php
Size: 0,703 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/View/Helper/HeadStyle.php
123456789101112131415161718192021222324252627282930313233343536 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\View\Helper; use Bluz\Application\Application; use Bluz\Proxy\Layout; use Bluz\View\View; /** * Set or generate <style> code for <head> * * @param string $href * @param string $media * * @return string|null */ return function ($href = null, $media = 'all') { /** * @var View $this */ if (Application::getInstance()->useLayout()) { return Layout::headStyle($href, $media); } // it's just alias to style() call return $this->style($href, $media); }; |