Determines whether a given facet should be displayed for a plugin.
Compares a given plugin definition with the selected facet to determine if the plugin should be displayed in the user interface.
string $facet: A colon separated string representing the key/value paring of a selected facet.
array $display_plugin_definition: The plugin definition to be compared.
bool Returns TRUE if the selected facet matches this plugin.
protected function facetCompare($facet, $display_plugin_definition) {
list($facet_type, $option) = explode(':', $facet);
return $option == $display_plugin_definition[$facet_type];
}