Back to ExtensionHelper class

Method checkIfCoreExtension

public static bool
checkIfCoreExtension
(mixed $type, mixed $element, mixed $clientId = 0, mixed $folder = '')
Check if an extension is core or not
Parameters
  • string $type The extension's type.
  • string $element The extension's element name.
  • int $clientId The extension's client ID. Default 0.
  • string $folder The extension's folder. Default ''.
Returns
  • bool True if core, false if not.
Since
  • 3.7.4

Method checkIfCoreExtension - Source code

/**
 * Check if an extension is core or not
 *
 * @param   string   $type      The extension's type.
 * @param   string   $element   The extension's element name.
 * @param   integer  $clientId  The extension's client ID. Default 0.
 * @param   string   $folder    The extension's folder. Default ''.
 *
 * @return  boolean  True if core, false if not.
 *
 * @since   3.7.4
 */
public static function checkIfCoreExtension($type, $element, $clientId = 0, $folder = '')
{
    return \in_array(array($type, $element, $folder, $clientId), self::$coreExtensions);
}