Provider/DynamicProvider.php
protected function createFieldDescriptor($name, $type = '', $translationKey = '', $disabled = false)
    {
        if (!$translationKey) {
            $translationKey = 'sulu_form.type.' . strtolower($name);
        }

        return new DoctrineFieldDescriptor(
            $name,
            $name,
            Dynamic::class,
            $translationKey,
            [],
            $disabled,
            false,
            $type
        );
    }
protected function createFieldDescriptor($name, $type = '', $translationKey = '', $disabled = false)
    {
        if (!$translationKey) {
            $translationKey = 'sulu_form.type.' . strtolower($name);
        }

        return new DoctrineFieldDescriptor(
            $name,
            $name,
            Dynamic::class,
            $translationKey,
            [],
            $disabled,
            false,
            $type
        );
    }
@param string $name
@param string $type
@param string $translationKey
@param bool $disabled

@return DoctrineFieldDescriptor