private function addGlobal(array $chunks, $value): void
    {
        if (false === $this->addToGlobals) {
            return;
        }

        $data = &$GLOBALS['TL_LANG'];

        foreach ($chunks as $key) {
            if (null === $data || !\is_array($data)) {
                $data = [];
            }

            $data = &$data[$key];
        }

        $data = $value;
    }
private function addGlobal(array $chunks, $value): void
    {
        if (false === $this->addToGlobals) {
            return;
        }

        $data = &$GLOBALS['TL_LANG'];

        foreach ($chunks as $key) {
            if (null === $data || !\is_array($data)) {
                $data = [];
            }

            $data = &$data[$key];
        }

        $data = $value;
    }
private function addGlobal ( array $ chunks , $ value ) : void { if ( false === $ this -> addToGlobals ) { return ; } $ data = & $ GLOBALS [ 'TL_LANG' ] ; foreach ( $ chunks as $ key ) { if ( null === $ data || ! \ is_array ( $ data ) ) { $ data = [ ] ; } $ data = & $ data [ $ key ] ; } $ data = $ value ; }
Adds the labels to the global PHP language array.
Adds the labels to the global PHP language array .