protected function FeedImportProcessor::hasContent in Feed Import 8
Checks if a variable has content
Parameters
mixed &$var: Variable to check
Return value
bool TRUE if there is content FALSE otherwise
1 call to FeedImportProcessor::hasContent()
- FeedImportProcessor::createEntity in feed_import_base/
src/ FeedImportProcessor.php - Creates a new entity.
File
- feed_import_base/
src/ FeedImportProcessor.php, line 593
Class
- FeedImportProcessor
- Class that processess the import.
Namespace
Drupal\feed_import_baseCode
protected function hasContent(&$var) {
if (is_scalar($var)) {
return (string) $var !== '';
}
return !empty($var);
}