Model extender

API overview

We're using evoWeb/extender extension as API for model extending. Additional documentation can be found here.

API usage

Basically, all that you to extend model is add following code in your ext_localconf.php:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['<EXTKEY1>']['extender']['<CLASSNAME>']['<EXTKEY2>'] =
     '\<Vendor>\<ExtensionKey>\Domain\Model\<YourModel>';
  • EXTKEY1 - extension key of the extension in which the domain model should be extended

  • EXTKEY2 - extension key of the extension in which the extending domain model resides

  • CLASSNAME - classname of the domain model to be extended including the complete namespace

Here's an example with pxa_product_manager:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['pxa_product_manager']['extender'][\Pixelant\PxaProductManager\Domain\Model\Product::class]['pxa_product_manager'] =
     \Pixelant\PxaProductManager\Domain\Model\Test::class;

Tip

You can use multiple extending from different extensions and namespaces.