2019-11-13 18:49:04 +01:00

15 lines
324 B
JavaScript

'use strict';
/**
* Returns the attribute keys of the component related attributes
*/
function getComponentAttributes(definition) {
return Object.keys(definition.attributes).filter(key =>
['component', 'dynamiczone'].includes(definition.attributes[key].type)
);
}
module.exports = {
getComponentAttributes,
};