@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (16 loc) • 511 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createTemplatePartId = createTemplatePartId;
/**
* Generates a template part Id based on slug and theme inputs.
*
* @param {string} theme the template part's theme.
* @param {string} slug the template part's slug
* @return {string|null} the template part's Id.
*/
function createTemplatePartId(theme, slug) {
return theme && slug ? theme + '//' + slug : null;
}
//# sourceMappingURL=create-template-part-id.js.map
;