src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
protected function parseBasicFlags(BasicDefinitionInterface $config)
    {
        if (null !== ($switchToEdit = $this->getFromDca('config/switchToEdit'))) {
            $config->setSwitchToEditEnabled((bool) $switchToEdit);
        }

        if (null !== ($value = $this->getFromDca('config/forceEdit'))) {
            $config->setEditOnlyMode((bool) $value);
        }

        if (null !== ($value = $this->getFromDca('config/closed'))) {
            $config
                ->setEditable(!$value)
                ->setCreatable(!$value);
        }

        if (null !== ($value = $this->getFromDca('config/notEditable'))) {
            $config->setEditable(!$value);
        }

        if (null !== ($value = $this->getFromDca('config/notDeletable'))) {
            $config->setDeletable(!$value);
        }

        if (null !== ($value = $this->getFromDca('config/notCreatable'))) {
            $config->setCreatable(!(bool) $value);
        }

        if (null !== ($value = $this->getFromDca('config/dynamicPtable'))) {
            $config->setDynamicParentTable((bool) $value);
        }
    }
protected function parseBasicFlags(BasicDefinitionInterface $config)
    {
        if (null !== ($switchToEdit = $this->getFromDca('config/switchToEdit'))) {
            $config->setSwitchToEditEnabled((bool) $switchToEdit);
        }

        if (null !== ($value = $this->getFromDca('config/forceEdit'))) {
            $config->setEditOnlyMode((bool) $value);
        }

        if (null !== ($value = $this->getFromDca('config/closed'))) {
            $config
                ->setEditable(!$value)
                ->setCreatable(!$value);
        }

        if (null !== ($value = $this->getFromDca('config/notEditable'))) {
            $config->setEditable(!$value);
        }

        if (null !== ($value = $this->getFromDca('config/notDeletable'))) {
            $config->setDeletable(!$value);
        }

        if (null !== ($value = $this->getFromDca('config/notCreatable'))) {
            $config->setCreatable(!(bool) $value);
        }

        if (null !== ($value = $this->getFromDca('config/dynamicPtable'))) {
            $config->setDynamicParentTable((bool) $value);
        }
    }
protected function parseBasicFlags ( BasicDefinitionInterface $ config ) { if ( null !== ( $ switchToEdit = $ this -> getFromDca ( 'config/switchToEdit' ) ) ) { $ config -> setSwitchToEditEnabled ( ( bool ) $ switchToEdit ) ; } if ( null !== ( $ value = $ this -> getFromDca ( 'config/forceEdit' ) ) ) { $ config -> setEditOnlyMode ( ( bool ) $ value ) ; } if ( null !== ( $ value = $ this -> getFromDca ( 'config/closed' ) ) ) { $ config -> setEditable ( ! $ value ) -> setCreatable ( ! $ value ) ; } if ( null !== ( $ value = $ this -> getFromDca ( 'config/notEditable' ) ) ) { $ config -> setEditable ( ! $ value ) ; } if ( null !== ( $ value = $ this -> getFromDca ( 'config/notDeletable' ) ) ) { $ config -> setDeletable ( ! $ value ) ; } if ( null !== ( $ value = $ this -> getFromDca ( 'config/notCreatable' ) ) ) { $ config -> setCreatable ( ! ( bool ) $ value ) ; } if ( null !== ( $ value = $ this -> getFromDca ( 'config/dynamicPtable' ) ) ) { $ config -> setDynamicParentTable ( ( bool ) $ value ) ; } }
Parse the basic flags.

@param BasicDefinitionInterface $config The basic definition of the data definition.

@return void
Parse the basic flags .