b0y-101 Mini Shell


Current Path : E:/www/risk/libraries/vendor/fig/link-util/src/
File Upload :
Current File : E:/www/risk/libraries/vendor/fig/link-util/src/TemplatedHrefTrait.php

<?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;
    }
}

Copyright © 2019 by b0y-101