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

        $options = [];
        foreach ($this->conditionFactory->getTypeNames() as $condition) {
            $options[$condition] = $this->translator->trans(
                'tl_metamodel_dcasetting_condition.conditionnames.' . $condition,
                [],
                'contao_tl_metamodel_dcasetting_condition'
            );
        }

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

        $options = [];
        foreach ($this->conditionFactory->getTypeNames() as $condition) {
            $options[$condition] = $this->translator->trans(
                'tl_metamodel_dcasetting_condition.conditionnames.' . $condition,
                [],
                'contao_tl_metamodel_dcasetting_condition'
            );
        }

        $event->setOptions($options);
    }
Provide options for property condition types.

@param GetPropertyOptionsEvent $event The event.

@return void

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)