src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
private function parseWidgetPageTree(PropertyInterface $property, array $propInfo)
    {
        if (isset($propInfo['sourceName'])
            || ('pageTree' !== $property->getWidgetType())
        ) {
            return;
        }

        // If the foreign key not set, then use an standard as fallback.
        if (!isset($propInfo['foreignKey'])) {
            $propInfo['foreignKey'] = 'tl_page.title';
        }

        $property
            ->setExtra(
                \array_merge(
                    [
                        'sourceName' => \explode('.', $propInfo['foreignKey'])[0],
                        'idProperty' => 'id'
                    ],
                    (array) $property->getExtra()
                )
            );
    }
private function parseWidgetPageTree(PropertyInterface $property, array $propInfo)
    {
        if (isset($propInfo['sourceName'])
            || ('pageTree' !== $property->getWidgetType())
        ) {
            return;
        }

        // If the foreign key not set, then use an standard as fallback.
        if (!isset($propInfo['foreignKey'])) {
            $propInfo['foreignKey'] = 'tl_page.title';
        }

        $property
            ->setExtra(
                \array_merge(
                    [
                        'sourceName' => \explode('.', $propInfo['foreignKey'])[0],
                        'idProperty' => 'id'
                    ],
                    (array) $property->getExtra()
                )
            );
    }
private function parseWidgetPageTree ( PropertyInterface $ property , array $ propInfo ) { if ( isset ( $ propInfo [ 'sourceName' ] ) || ( 'pageTree' !== $ property -> getWidgetType ( ) ) ) { return ; } // If the foreign key not set, then use an standard as fallback. if ( ! isset ( $ propInfo [ 'foreignKey' ] ) ) { $ propInfo [ 'foreignKey' ] = 'tl_page.title' ; } $ property -> setExtra ( \ array_merge ( [ 'sourceName' => \ explode ( '.' , $ propInfo [ 'foreignKey' ] ) [ 0 ] , 'idProperty' => 'id' ] , ( array ) $ property -> getExtra ( ) ) ) ; }
Parse the property widget type of page tree.

@param PropertyInterface $property The property to parse.
@param array             $propInfo The property information.

@return void
Parse the property widget type of page tree .