You are here

public function XmlParser::configFormValidate in Feeds extensible parsers 8

Overrides ParserBase::configFormValidate

File

src/Feeds/Parser/XmlParser.php, line 277

Class

XmlParser
Defines a XML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

public function configFormValidate(&$values) {
  parent::configFormValidate($values);

  // Remove values that are inner but not raw.
  foreach ($values['sources'] as $machine_name => $source) {
    if (!empty($source['inner']) && empty($source['raw'])) {
      unset($values['sources'][$machine_name]['inner']);
    }
  }
}