/**
  * Resolves the TypoScript reference for $pluginConfiguration[$setting].
  * In case the setting is a string and starts with "<", we know that this is a TypoScript reference which
  * needs to be resolved separately.
  *
  * @param array $pluginConfiguration The whole plugin configuration
  * @param string $setting The key inside the $pluginConfiguration to check
  * @return array The modified plugin configuration
  */
 protected function resolveTyposcriptReference($pluginConfiguration, $setting)
 {
     if (is_string($pluginConfiguration[$setting]) && substr($pluginConfiguration[$setting], 0, 1) === '<') {
         $key = trim(substr($pluginConfiguration[$setting], 1));
         $setup = $this->loadTypoScriptSetup();
         list(, $newValue) = $this->typoScriptParser->getVal($key, $setup);
         unset($pluginConfiguration[$setting]);
         $pluginConfiguration[$setting . '.'] = $newValue;
     }
     return $pluginConfiguration;
 }
 /**
  * Call back method for preg_replace_callback in substituteConstants
  *
  * @param $matches
  * @return	string		Replacement
  * @see substituteConstants()
  */
 public function substituteConstantsCallBack($matches)
 {
     $s = $this->_constParser->getVal($matches[1], $this->_constParser->setup);
     return isset($s[0]) ? $s[0] : $matches[0];
 }