From 3dec23c1219c593d3ac7c87de1aa6b2a97c6dfcd Mon Sep 17 00:00:00 2001 From: Abdy Franco Date: Wed, 8 Jul 2026 16:41:56 -0600 Subject: [PATCH] Implemented example objects data --- domains_plugin.php | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/domains_plugin.php b/domains_plugin.php index 7ca475e..29d3ce2 100644 --- a/domains_plugin.php +++ b/domains_plugin.php @@ -1,13 +1,14 @@ 'domains'] ); } + + /** + * Returns field extensions to merge into existing core model examples + * + * @return array> + */ + public function getExampleExtensions(): array + { + return [ + 'Services' => [ + 'expiration_date' => '2027-03-20' + ] + ]; + } + + /** + * Returns entirely new model examples that have no core JSON file + * + * @return array + */ + public function getExampleModels(): array + { + return []; + } + + /** + * Returns tag name to model name mappings for new root-level template tags + * + * @return array + */ + public function getTagMappings(): array + { + return [ + 'service' => 'Services', + 'contact' => 'Contacts' + ]; + } }