Back to Microdata class

Method isTypeAvailable

public static bool
isTypeAvailable
(mixed $type)
Control if the given Type class is available
Parameters
  • string $type The Type to check
Returns
  • bool
Since
  • 3.2
Class: Microdata
Project: Joomla

Method isTypeAvailable - Source code

/**
 * Control if the given Type class is available
 *
 * @param   string  $type  The Type to check
 *
 * @return  boolean
 *
 * @since   3.2
 */
public static function isTypeAvailable($type)
{
    static::loadTypes();
    return \array_key_exists($type, static::$types);
}