code/libraries/joomlatools/library/translator/locator/factory.php
public function isRegistered($identifier)
    {
        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);

            if(!$class || !array_key_exists('KTranslatorLocatorInterface', class_implements($class)))
            {
                throw new UnexpectedValueException(
                    'Locator: '.$identifier.' does not implement KTranslatorLocatorInterface'
                );
            }

            $name = $class::getName();
        }
        else $name = $identifier;

        $result = in_array($name, $this->getLocators());
        return $result;
    }
public function isRegistered($identifier)
    {
        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);

            if(!$class || !array_key_exists('KTranslatorLocatorInterface', class_implements($class)))
            {
                throw new UnexpectedValueException(
                    'Locator: '.$identifier.' does not implement KTranslatorLocatorInterface'
                );
            }

            $name = $class::getName();
        }
        else $name = $identifier;

        $result = in_array($name, $this->getLocators());
        return $result;
    }
public function isRegistered ( $ identifier ) { if ( strpos ( $ identifier , '.' ) !== false ) { $ identifier = $ this -> getIdentifier ( $ identifier ) ; $ class = $ this -> getObject ( 'manager' ) -> getClass ( $ identifier ) ; if ( ! $ class || ! array_key_exists ( 'KTranslatorLocatorInterface' , class_implements ( $ class ) ) ) { throw new UnexpectedValueException ( 'Locator: ' . $ identifier . ' does not implement KTranslatorLocatorInterface' ) ; } $ name = $ class :: getName ( ) ; } else $ name = $ identifier ; $ result = in_array ( $ name , $ this -> getLocators ( ) ) ; return $ result ; }
Check if the locator is registered

@param string $identifier A locator object identifier string or locator name
@return bool TRUE if the locator is a registered, FALSE otherwise.
Check if the locator is registered