[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/fig/link-util/src/ -> TemplatedHrefTrait.php (source)

   1  <?php
   2  
   3  
   4  namespace Fig\Link;
   5  
   6  trait TemplatedHrefTrait
   7  {
   8      /**
   9       * Determines if an href is a templated link or not.
  10       *
  11       * @see https://tools.ietf.org/html/rfc6570
  12       *
  13       * @param string $href
  14       *   The href value to check.
  15       *
  16       * @return bool
  17       *   True if the specified href is a templated path, False otherwise.
  18       */
  19      private function hrefIsTemplated($href)
  20      {
  21          return strpos($href, '{') !== false ||strpos($href, '}') !== false;
  22      }
  23  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer