Source of file HeadScript.php
Size: 0,726 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/View/Helper/HeadScript.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 <script> code for <head> * * @param string $src * @param array $attributes * * @return null|string */ return function ($src = null, array $attributes = []) { /** * @var View $this */ if (Application::getInstance()->useLayout()) { return Layout::headScript($src, $attributes); } // it's just alias to script() call return $this->script($src, $attributes); }; |