Source: components/filter/filter-result/filter-result-element/breadcrumb.js

import jQ from "jquery";
import BaseComponent from "../../../base-component";
import Settings from "../../../../helpers/settings";
import Labels from "../../../../helpers/labels";
import Class from "../../../../helpers/class";
import Utils from "../../../../helpers/utils";
import Globals from "../../../../helpers/globals";
import Selector from "../../../../helpers/selector";

/**
 * Page collection info <br />
 * Request to Shopify API to get the information of a Collection
 * to build collection Title, collection Description, Breadcrumb and Document info
 * @extends BaseComponent
 */
class Breadcrumb extends BaseComponent {

	compileTemplate() {
		// Override this in theme
		return '';
	}

	buildBreadcrumb() {
		this.collectionData = this.parent.collectionData;
		if(this.collectionData && this.collectionData.collection) {
			var $breadcrumb = jQ(Selector.breadcrumb);
			if ($breadcrumb.length) {
				$breadcrumb.html(this.compileTemplate());
			}
		}
	}
}
export default Breadcrumb;