getAttr('tag', 'p'); $tag = in_array($raw, self::ALLOWED_TAGS, true) ? $raw : 'p'; echo '<' . $tag . ' class="rsv-form-output-text">' . esc_html($def->getLabel()) . ''; } public function submit(RsvFormElementDefinition $def, int $submit_id, array $data, RsvFormSubmitResult $result): bool { return true; } public function rollback(RsvFormElementDefinition $def, int $submit_id, array $data, RsvFormSubmitResult $result): void { // No side effects to undo. } }