/**
  * {@inheritdoc}
  */
 public function getConfig($name)
 {
     if (!$this->hasConfig($name)) {
         throw ConfigManagerException::configDoesNotExist($name);
     }
     return $this->configs[$name];
 }
 /**
  *
  * Truncates string if longer than needed and appends '...' to signify shorthand, otherwise returns original string.
  *
  * @access public
  *
  * @param $needle
  * @param $haystack
  *
  * @return int
  */
 public function getCKEditorConfig($configIndex, $toolbarType = 'inline_editor')
 {
     $config = $this->configManager->getConfig($toolbarType);
     if (!array_key_exists($configIndex, $config)) {
         throw ConfigManagerException::configDoesNotExist($configIndex);
     }
     return $config[$configIndex];
 }