src/CoreBundle/EventListener/DcGeneral/Table/DcaSortGroup/AttributeOptionsListener.php
public function handle(GetPropertyOptionsEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $result    = [];
        $metaModel = $this->getMetaModelFromModel($event->getModel());

        foreach ($metaModel->getAttributes() as $attribute) {
            if ($attribute instanceof IInternal) {
                continue;
            }
            $typeName                      = $attribute->get('type');
            $result[$attribute->get('id')] = $attribute->getName() . ' [' . $typeName . ']';
        }

        $event->setOptions($result);
    }
public function handle(GetPropertyOptionsEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $result    = [];
        $metaModel = $this->getMetaModelFromModel($event->getModel());

        foreach ($metaModel->getAttributes() as $attribute) {
            if ($attribute instanceof IInternal) {
                continue;
            }
            $typeName                      = $attribute->get('type');
            $result[$attribute->get('id')] = $attribute->getName() . ' [' . $typeName . ']';
        }

        $event->setOptions($result);
    }
Provide options for attribute type selection.

@param GetPropertyOptionsEvent $event The event.

@return void