/**
  * Register All the EAV Collection related details on the event eav_collection_abstract_load_before
  */
 public function onEveryEavCollectionLoad(\Magento\Framework\Event\Observer $observer)
 {
     $collection = $observer->getCollection();
     $collectionArrayEav = array();
     $collectionArrayEav['sql'] = $collection->getSelectSql(true);
     $collectionArrayEav['type'] = 'Eav';
     $collectionArrayEav['class'] = get_class($collection);
     $this->collections[] = $collectionArrayEav;
     $this->_devtoolData->addDevToolData($this->_devtoolData->_collectionKey, $this->collections);
 }
 /**
  * Register All the Collection related details on the event core_collection_abstract_load_before
  */
 public function execute(\Magento\Framework\Event\Observer $observer)
 {
     $collection = $observer->getCollection();
     $collectionArray = array();
     $collectionArray['sql'] = $collection->getSelectSql(true);
     $collectionArray['type'] = 'Flat';
     $collectionArray['class'] = get_class($collection);
     $this->collections[] = $collectionArray;
     $this->_devtoolData->addDevToolData($this->_devtoolData->_collectionKey, $this->collections);
 }