protected static function discoverExtensionComponents($extensionKey)
    {
        // Test if the extension contains a component directory
        $extCompRootDirectory = ExtensionManagementUtility::extPath($extensionKey, 'Components');

        return is_dir($extCompRootDirectory) ? self::discoverExtensionComponentDirectory($extCompRootDirectory) : [];
    }
protected static function discoverExtensionComponents($extensionKey)
    {
        // Test if the extension contains a component directory
        $extCompRootDirectory = ExtensionManagementUtility::extPath($extensionKey, 'Components');

        return is_dir($extCompRootDirectory) ? self::discoverExtensionComponentDirectory($extCompRootDirectory) : [];
    }
protected static function discoverExtensionComponents ( $ extensionKey ) { // Test if the extension contains a component directory $ extCompRootDirectory = ExtensionManagementUtility :: extPath ( $ extensionKey , 'Components' ) ; return is_dir ( $ extCompRootDirectory ) ? self :: discoverExtensionComponentDirectory ( $ extCompRootDirectory ) : [ ] ; }
Discover the components of a single extension

@param $extensionKey
Discover the components of a single extension