/**
* Return if the backend collection has the requested feature.
*
* @param string $feature The requested feature.
* @param string $collection The requested collection id.
*
* @return boolean
* @since 2.6.0
*/
public function hasFeature($feature, $collection)
{
if (empty($this->_capabilities[$collection]) || !array_key_exists($feature, $this->_capabilities[$collection])) {
$this->_capabilities[$collection][$feature] = $this->_registry->hasFeature($feature, $this->_getAppFromCollectionId($collection));
}
return $this->_capabilities[$collection][$feature];
}