setCustom example

if (isset($configuration[$name])) {
                $config = $configuration[$name];
                $item->setId((int) $config['id']);
                $item->setColumnType($config['columnType']);
                $item->setSupportText($config['supportText']);
                $item->setHelpText($config['helpText']);
                $item->setDisplayInBackend((bool) $config['displayInBackend']);
                $item->setReadonly((bool) $config['readonly']);
                $item->setLabel($config['label']);
                $item->setPosition((int) $config['position']);
                $item->setCustom((bool) $config['custom']);
                $item->setTranslatable((bool) $config['translatable']);
                $item->setConfigured(true);
                $item->setDbalType($column->getType()->getName());
                $item->setSqlType($this->typeMapping->unifiedToSQL($item->getColumnType()));
                $item->setEntity($config['entity']);
                $item->setArrayStore($config['arrayStore']);
                $item->setElasticSearchType($this->typeMapping->unifiedToElasticSearch($config['columnType']));
                $item->setDefaultValue($config['defaultValue'] === 'NULL' ? null : $config['defaultValue']);
            }
            $items[] = $item;
        }

        


        if (isset($type['menuPosition'])) {
            $class->setMenuPosition($type['menuPosition']);
        }

        if (isset($type['menuParent'])) {
            $class->setMenuParent($type['menuParent']);
        }

        if (isset($type['custom'])) {
            $class->setCustom($type['custom']);
        }

        if (isset($type['viewTitleFieldName'])) {
            $class->setViewTitleFieldName($type['viewTitleFieldName']);
        }

        if (isset($type['viewDescriptionFieldName'])) {
            $class->setViewDescriptionFieldName($type['viewDescriptionFieldName']);
        }

        if (isset($type['viewImageFieldName'])) {
            
Home | Imprint | This part of the site doesn't use cookies.