Gets the overrides (replacements) for the less file as array().

@return array
779503
public static function getOverrides()
    {
        $overrides = [];
        if (TYPO3_MODE === 'FE') {
            if ((array_key_exists('plugin.', $GLOBALS['TSFE']->tmpl->setup))
            && (array_key_exists('tx_dyncss.', $GLOBALS['TSFE']->tmpl->setup['plugin.']))
            && (array_key_exists('overrides.', $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dyncss.']))) {
                // iterate of cObjects and render them to pass them into the vars
                foreach ($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dyncss.']['overrides.'] as $varName => $varCObj) {
                    if (substr($varName, -1, 1) !== '.') {
                        $cObj = GeneralUtility::makeInstance('TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer');
                        $overrides[$varName] = $cObj->cObjGetSingle($varCObj, $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dyncss.']['overrides.'][$varName.'.']);
                    }
                }
            }
            //
        } elseif (TYPO3_MODE === 'BE') {
            /** @var \KayStrobach\Dyncss\Configuration\BeRegistry $configManager */
            $configManager = GeneralUtility::makeInstance('KayStrobach\Dyncss\Configuration\BeRegistry');
            $overrides = $configManager->getAllOverrides();
        }

        return $overrides;
    }
507289
public function getRemainingMutations()
    {
        $remaining = [];
        foreach ($this->mutations as $propertyName => $propValue) {
            if (!isset($this->result[$propertyName])) {
                $remaining[] = $propertyName;
            }
        }

        return $remaining;
    }
315027
public function getChanges()
    {
        $changes = [];

        foreach ($this->originals as $name => $original) {
            if ($this->hasChange($name)) {
                $changes[$name] = $this->$name;
            }
        }

        return $changes;
    }
1308475
private function getServerArguments() {
        $args = $_SERVER['argv'];
        array_shift($args);

        $args = $this->parseArgs($args);

        return $args;
    }
589425
public function getOwnConstants()
    {
        if ($this->getParentClass() === false) {
            return $this->getConstants();
        } else {
            return array_diff_key($this->getConstants(), $this->getParentClass()->getConstants());
        }
    }
534667
public function loadOverrides($names) {
    $overrides = [];
    // Add mentions filter to Basic HTML text format.
    $config_name = 'filter.format.basic_html';
    if (in_array($config_name, $names)) {
      $config = \Drupal::service('config.factory')->getEditable($config_name);

      $dependencies = $config->get('dependencies.module');
      $dependencies[] = 'mentions';

      $filters = $config->get('filters');
      $filters['filter_mentions'] = [
        'id' => 'filter_mentions',
        'provider' => 'mentions',
        'status' => TRUE,
        'weight' => 40,
        'settings' => [
          'mentions_filter' => [
            'ProfileMention' => 1,
            'UserMention' => 1,
          ],
        ],
      ];

      $overrides[$config_name] = [
        'dependencies' => [
          'module' => $dependencies,
        ],
        'filters' => $filters,
      ];
    }
    return $overrides;
  }
459060
private function getConfiguration()
    {
        return array_merge(
            [
                'fileMimeTypeField' => false,
                'fileNameField'     => false,
                'filePathField'     => false,
                'fileSizeField'     => false,
            ],
            $this->classMetadata->getExtension(UploadableDriver::EXTENSION_NAME),
            [
                'uploadable'        => true,
                'allowOverwrite'    => $this->allowOverwrite,
                'appendNumber'      => $this->appendNumber,
                'path'              => $this->path,
                'pathMethod'        => $this->pathMethod,
                'callback'          => $this->callback,
                'filenameGenerator' => $this->filenameGenerator,
                'maxSize'           => (float) $this->maxSize,
                'allowedTypes'      => $this->allowedTypes,
                'disallowedTypes'   => $this->disallowedTypes,
            ]
        );
    }
1360494
private function loadResourceFiles()
    {
        return $this->replaceExecutableCode(
            $this->loadResourcesFiles()
        )->mapWithKeys(function ($value, $key) {
            return [$this->removeExtension($key) => $value];
        });
    }
698124
public function getFilterOptionsForDcGeneral()
    {
        if (!$this->isFilterOptionRetrievingPossible(null)) {
            return [];
        }

        $originalLanguage       = $GLOBALS['TL_LANGUAGE'];
        $GLOBALS['TL_LANGUAGE'] = $this->getMetaModel()->getActiveLanguage();

        $filter = $this->getSelectMetaModel()->getEmptyFilter();

        $this->buildFilterRulesForFilterSetting($filter);

        $objItems = $this->getSelectMetaModel()->findByFilter(
            $filter,
            $this->getSortingColumn(),
            0,
            0,
            'ASC',
            [$this->getValueColumn(), $this->getIdColumn()]
        );

        $GLOBALS['TL_LANGUAGE'] = $originalLanguage;

        return $this->convertItemsToFilterOptions($objItems, $this->getValueColumn(), $this->getIdColumn());
    }
1140280
public function getTwigExtras()
    {
        if (!isset($this->config['twig']) || empty($this->config['twig'])) {
            return array();
        }
        $array = $this->config['twig'];
        if (!is_array($array)) {
            $array = array($array);
        }
        return $array;
    }
862438
public function get_extensions()
    {
        if ($this->exts)
            return $this->exts;

        if (!$this->sieve)
            return $this->_set_error(self::ERROR_INTERNAL);

        $ext = $this->sieve->getExtensions();

        if (is_a($ext, 'PEAR_Error')) {
            return array();
        }

        // we're working on lower-cased names
        $ext = array_map('strtolower', (array) $ext);

        if ($this->script) {
            $supported = $this->script->get_extensions();
            foreach ($ext as $idx => $ext_name)
                if (!in_array($ext_name, $supported))
                    unset($ext[$idx]);
        }

        return array_values($ext);
    }
1095043
public function getEditFieldsArrays($override = false)
    {
        $return = array();

        foreach ($this->getEditFields(true, $override) as $fieldObject) {
            $return[$fieldObject->getOption('field_name')] = $fieldObject->getOptions();
        }

        //get the key field if this is a model page
        if ($this->config->getType() === 'model') {
            $this->fillKeyField($return);
        }

        return $return;
    }
999097
protected function getExtensions()
    {
        if (file_exists(realpath(__DIR__.'/../../../../../config/twig.php'))) {
            $this->config = require realpath(__DIR__.'/../../../../../config/twig.php');
        } else {
            $this->config = require realpath(__DIR__.'/../../config/twig.php');
        }

        return isset($this->config['extensions']) ? $this->config['extensions'] : [];
    }
51456
private function getDictionaryOverrides(array &$data): array
    {
        $overrides = [];
        foreach (['source_language', 'target_language'] as $key) {
            if (array_key_exists($key, $data)) {
                $overrides[$key] = $data[$key];
                unset($data[$key]);
            }
        }

        return $overrides;
    }
1260420
public function getRuntimeAliases()
    {
        $paths = [];
        foreach ($this->getRuntime() as $key => $value) {
            if (in_array($key, ['hook', 'libraries', 'stylesheets', 'mediaFiles', 'icon', 'src'])) {
                $paths[$key] = preg_replace('/^(.\/)(.*)/', $this->getTypeIdentifier() . "/$2", $this->getRuntimeKey($key));
            }
        }
        return $paths;
    }
552692
public function getReplacements()
    {
        return array_merge(parent::getReplacements(), [
            'table_one' => $this->table_one,
            'table_two' => $this->table_two,
            'column_one' => $this->getColumnOne(),
            'column_two' => $this->getColumnTwo(),
            'table_pivot' => $this->getPivotTableName(),
            'timestamp' => $this->getTimestampReplacement(),
        ]);
    }
807779
public function getReplace()
    {
        return [
            'iblockId' => $this->fields['IBLOCK_ID'],
            'code'     => "'".$this->fields['FIELD_NAME']."'",
            'entity'   => "'".$this->fields['ENTITY_ID']."'",
            'fields'   => var_export($this->fields, true),
        ];
    }