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

            $system->loadLanguageFile($table);
        }
    }
public function loadLanguageFile(string $table)
    {
        if (!isset($GLOBALS['TL_LANG'][$table]) || null === $GLOBALS['TL_LANG'][$table]) {
            /** @var System $system */
            $system = $this->framework->getAdapter(System::class);

            $system->loadLanguageFile($table);
        }
    }
public function loadLanguageFile ( string $ table ) { if ( ! isset ( $ GLOBALS [ 'TL_LANG' ] [ $ table ] ) || null === $ GLOBALS [ 'TL_LANG' ] [ $ table ] ) { /** @var System $system */ $ system = $ this -> framework -> getAdapter ( System :: class ) ; $ system -> loadLanguageFile ( $ table ) ; } }
Load a language file in a testable way.

@param string $table
Load a language file in a testable way .