src/Dca/DcaUtil.php
public function loadDc(string $table)
    {
        if (!isset($GLOBALS['TL_DCA'][$table]) || null === $GLOBALS['TL_DCA'][$table]) {
            /** @var Controller $controller */
            $controller = $this->framework->getAdapter(Controller::class);

            $controller->loadDataContainer($table);
        }
    }
public function loadDc(string $table)
    {
        if (!isset($GLOBALS['TL_DCA'][$table]) || null === $GLOBALS['TL_DCA'][$table]) {
            /** @var Controller $controller */
            $controller = $this->framework->getAdapter(Controller::class);

            $controller->loadDataContainer($table);
        }
    }
public function loadDc ( string $ table ) { if ( ! isset ( $ GLOBALS [ 'TL_DCA' ] [ $ table ] ) || null === $ GLOBALS [ 'TL_DCA' ] [ $ table ] ) { /** @var Controller $controller */ $ controller = $ this -> framework -> getAdapter ( Controller :: class ) ; $ controller -> loadDataContainer ( $ table ) ; } }
Load a data container in a testable way.

@param string $table
Load a data container in a testable way .