src/CoreBundle/Contao/Hooks/AbstractContentElementAndModuleCallback.php
public function editRenderSettingButton(\DC_Table $dataContainer)
    {
        if ($dataContainer->value < 1) {
            return '';
        }

        $url = $this->urlBuilderFactory->create('contao/main.php?do=metamodels&table=tl_metamodel_rendersetting')
            ->setQueryParameter(
                'pid',
                ModelId::fromValues('tl_metamodel_rendersettings', $dataContainer->value)->getSerialized()
            );

        return $this->renderEditButton(
            $GLOBALS['TL_LANG'][static::$tableName]['editrendersetting'][0],
            sprintf(
                StringUtil::specialchars($GLOBALS['TL_LANG'][static::$tableName]['editrendersetting'][1]),
                $dataContainer->value
            ),
            $url
        );
    }
public function editRenderSettingButton(\DC_Table $dataContainer)
    {
        if ($dataContainer->value < 1) {
            return '';
        }

        $url = $this->urlBuilderFactory->create('contao/main.php?do=metamodels&table=tl_metamodel_rendersetting')
            ->setQueryParameter(
                'pid',
                ModelId::fromValues('tl_metamodel_rendersettings', $dataContainer->value)->getSerialized()
            );

        return $this->renderEditButton(
            $GLOBALS['TL_LANG'][static::$tableName]['editrendersetting'][0],
            sprintf(
                StringUtil::specialchars($GLOBALS['TL_LANG'][static::$tableName]['editrendersetting'][1]),
                $dataContainer->value
            ),
            $url
        );
    }
public function editRenderSettingButton ( \ DC_Table $ dataContainer ) { if ( $ dataContainer -> value < 1 ) { return '' ; } $ url = $ this -> urlBuilderFactory -> create ( 'contao/main.php?do=metamodels&table=tl_metamodel_rendersetting' ) -> setQueryParameter ( 'pid' , ModelId :: fromValues ( 'tl_metamodel_rendersettings' , $ dataContainer -> value ) -> getSerialized ( ) ) ; return $ this -> renderEditButton ( $ GLOBALS [ 'TL_LANG' ] [ static :: $ tableName ] [ 'editrendersetting' ] [ 0 ] , sprintf ( StringUtil :: specialchars ( $ GLOBALS [ 'TL_LANG' ] [ static :: $ tableName ] [ 'editrendersetting' ] [ 1 ] ) , $ dataContainer -> value ) , $ url ) ; }
Return the edit wizard.

@param \DC_Table $dataContainer The data container.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Return the edit wizard .