Skip to content

docs: Port "Implementing variant - A/B test - support to entities" dev docs page#575

Open
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/port-variant-entities-devdocs
Open

docs: Port "Implementing variant - A/B test - support to entities" dev docs page#575
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/port-variant-entities-devdocs

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Ports the legacy developer-docs "Implementing variant (A/B test) support to entities" content into RST at docs/plugin_miscellaneous/variant_entities.rst, replacing the placeholder stub. Documents the VariantInterface, VariantEntityTrait, VariantModelTrait, and VariantMigrationTrait code-level extension points plus the translated entity Form example. Targets base branch 7.2 (repo default), sourced from 7.1 porting issue #419 / parent #418.

Trigger Events


Tip: Whenever you leave a comment tagged @Promptless on a Promptless PR, Promptless will remember it for future suggestions 🧠

.. vale on No newline at end of file
.. vale on

Mautic provides helper methods for creating variants of an entity, which is especially useful for A/B testing. Use the interfaces and traits below to add variant support to your Plugin's entities.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ported the interface/trait descriptions, the VariantModelTrait save-flow PHP example, and the variantParent Form example verbatim (converted to RST) from the legacy _plugin_misc_variant_entities.md source file, as directed by the "Link to the content at legacy docs" in issue #418.

Source: https://github.com/mautic/developer-documentation/blob/main/source/includes/_plugin_misc_variant_entities.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant