dev/src/GetComponentsTrait.php
private function getManifestComponentModuleIndex($manifest, $componentId)
    {
        $manifest = is_array($manifest)
            ? $manifest
            : $this->getManifest($manifest);

        $modules = array_filter($manifest['modules'], function ($module) use ($componentId) {
            return ($module['id'] === $componentId);
        });

        return array_keys($modules)[0];
    }
private function getManifestComponentModuleIndex($manifest, $componentId)
    {
        $manifest = is_array($manifest)
            ? $manifest
            : $this->getManifest($manifest);

        $modules = array_filter($manifest['modules'], function ($module) use ($componentId) {
            return ($module['id'] === $componentId);
        });

        return array_keys($modules)[0];
    }
private function getManifestComponentModuleIndex ( $ manifest , $ componentId ) { $ manifest = is_array ( $ manifest ) ? $ manifest : $ this -> getManifest ( $ manifest ) ; $ modules = array_filter ( $ manifest [ 'modules' ] , function ( $ module ) use ( $ componentId ) { return ( $ module [ 'id' ] === $ componentId ) ; } ) ; return array_keys ( $ modules ) [ 0 ] ; }
Get the manifest component index.

@param string|array $manifest If a string, the path to the manifest. If
an array, the manifest contents.
@param string $componentId The component ID to fetch
@return int
Get the manifest component index .