<?php
namespace SabaiApps\Directories\Component\Entity\CSVImporter;

use SabaiApps\Directories\Component\Entity\Model\Field;
use SabaiApps\Directories\Component\Entity\Model\Bundle;

class TermsCSVImporter extends AbstractTermsCSVImporter {

	public function csvImporterSupports( Bundle $bundle, Field $field ) {
		// Skip taxonomies that are assigned through another field
		return ( $bundle = $this->_getTaxonomyBundle( $field ) )
			&& false !== $this->_application->Entity_BundleTypeInfo( $bundle, 'taxonomy_assignable' );
	}
}
