UNPKG

strapi-plugin-placeholder

Version:
22 lines (16 loc) 599 B
'use strict'; const pluginId = require('../plugin-id'); module.exports = ({ strapi }) => ({ /** * Helper that returns the plugin settings. * @returns {Object} the settings of the plugin */ get: () => strapi.config.get(`plugin.${pluginId}`), /** * Helper that sets the plugin settings and returns them. * @param {Object} settings the desired settings for the plugin * @param {number} settings.size the desired size of the placeholder * @returns {Object} the new settings for the plugin */ set: (settings) => strapi.config.set(`plugin.${pluginId}`, settings), });