CoreFiles by mySites.guru
TemplatedHrefTrait.php23 lines, 487 bytes, from Joomla_4.2.4-Stable-Full_Package.zip
Raw History Compare with 4.2.3
md5
53eeb7bfc64c8f3ccf93c1855f7edca7
sha1
b340604fdaf12c1d409805357ebc7395b8a0d920
sha256
d0e01ccab9c28d5268d31e11fc83266b738fbd7a41c4f602ed826cb2f2c1d54b
<?php


namespace Fig\Link;

trait TemplatedHrefTrait
{
    /**
     * Determines if an href is a templated link or not.
     *
     * @see https://tools.ietf.org/html/rfc6570
     *
     * @param string $href
     *   The href value to check.
     *
     * @return bool
     *   True if the specified href is a templated path, False otherwise.
     */
    private function hrefIsTemplated($href)
    {
        return strpos($href, '{') !== false ||strpos($href, '}') !== false;
    }
}

The same content is in 141 releases, Joomla 4.0.0-alpha2 to 4.4.14. See them all, or every version of this file.