Skip to main content
Version: 2026.2

Extending Adapters

The bundle ships adapters for the standard data types, plus specialized ones such as objectbrick that keep only specific fields. Override the shipped backend adapters (for example input or numeric) with your own classes, and map additional data types when needed.

The configuration is a key-value map in your config/config.yaml file under the key pimcore_backend_power_tools.pimcore_alternative_object_trees.adapters. Each entry pairs one of the four built-in frontend adapters with a backend adapter class:

pimcore_backend_power_tools:
pimcore_alternative_object_trees:
adapters:
input:
frontend: SimpleValueAdapter
backend: App\Adapter\AlternativeElementTree\CustomValueAdapter #= the custom backend adapter
custom:
frontend: SimpleValueAdapter #= must be one of the four built-in frontend adapters
backend: Pimcore\Bundle\BackendPowerToolsBundle\Adapter\AlternativeElementTree\DataObject\SimpleValueAdapter

The frontend key only selects which controls the Tree Levels tab renders. It cannot name a class of your own, see Frontend Adapters. All custom logic belongs in the backend adapter.