_filesystem = $filesystem;
parent::__construct( $context, $data );
}
public function getWebsiteId() {
$storeModel = $this->_objectManager->create( 'Magento\Store\Model\Store' );
$store = $storeModel->load( $this->getRequest()->getParam( 'store' ) );
return $store->getWebsiteId();
}
public function getAbsolutePath( $path ) {
return $this->_filesystem->getDirectoryRead( DirectoryList::APP )->getAbsolutePath( $path );
}
}