Back to RouteHelper class

Method lookupItem

protected static mixed
lookupItem
(mixed $needles = array())
Static alias to findItem() used to find the item in the menu structure
Parameters
  • array $needles Array of lookup values
Returns
  • mixed
Since
  • 3.2
Class: RouteHelper
Project: Joomla

Method lookupItem - Source code

/**
 * Static alias to findItem() used to find the item in the menu structure
 *
 * @param   array  $needles  Array of lookup values
 *
 * @return  mixed
 *
 * @since   3.2
 */
protected static function lookupItem($needles = array())
{
    $instance = new static();
    return $instance->findItem($needles);
}