Promptmetaregistry - Source Excerpt 03
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/spiralist-workspace/includes/Support/PromptMetaRegistry.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/plugins/spiralist-workspace/includes/Support/PromptMetaRegistry.php
* Slugifies an arbitrary value for registry matching.
*/
private static function slugify(string $value): string
{
return str_replace('-', '_', sanitize_title($value));
}
/**
* Translates one registry label through the site locale catalog.
*/
private static function ui_text(string $key, string $fallback): string
{
return \function_exists('spiralist_get_ui_text')
? \spiralist_get_ui_text($key, $fallback)
: $fallback;
}
}