Source of file Title.php
Size: 0,577 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Layout/Helper/Title.php
123456789101112131415161718192021222324252627282930313233 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Layout\Helper; use Bluz\Layout\Layout; use Bluz\Proxy\Registry; /** * Set or generate <title> code for <head> * * @param string $title * * @return string */ return function ($title = null) { // it's stack for <title> tag if (is_null($title)) { return Registry::get('layout:title'); } Registry::set('layout:title', $title); return $title; }; |