[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 /** 2 * Internal dependencies. 3 */ 4 import { TYPES as types } from './action-types'; 5 6 /** 7 * Returns the list of active components. 8 * 9 * @return {Object} Object for action. 10 */ 11 export function getActiveComponents( list ) { 12 return { 13 type: types.GET_ACTIVE_COMPONENTS, 14 list, 15 }; 16 } 17 18 /** 19 * Returns an action object used to fetch something from the API. 20 * 21 * @param {string} path Endpoint path. 22 * @param {boolean} parse Should we parse the request. 23 * @return {Object} Object for action. 24 */ 25 export function fetchFromAPI( path, parse ) { 26 return { 27 type: types.FETCH_FROM_API, 28 path, 29 parse, 30 }; 31 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri May 5 01:01:24 2023 | Cross-referenced by PHPXref 0.7.1 |