public function componentsManifest($componentId = null)
    {
        $manifest = $this->manifest ?: $this->loadManifest;
        $modules = $manifest['modules'];

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

        return $modules;
    }