class FacetapiEmptyBehaviorNone in Facet API 7.2
Same name and namespace in other branches
- 6.3 plugins/facetapi/empty_behavior.inc \FacetapiEmptyBehaviorNone
- 7 plugins/facetapi/empty_behavior.inc \FacetapiEmptyBehaviorNone
Empty behavior plugin that returns an empty array.
This is the default behavior for empty facets. Returning an empty array will prevent the facet from being displayed if it contains no items. For example, if facets are displayed as blocks, the empty array will prevent the block from rendering.
Hierarchy
- class \FacetapiEmptyBehavior
- class \FacetapiEmptyBehaviorNone
Expanded class hierarchy of FacetapiEmptyBehaviorNone
2 string references to 'FacetapiEmptyBehaviorNone'
- facetapi_facetapi_empty_behaviors in ./
facetapi.facetapi.inc - Implements hook_facetapi_empty_behaviors().
- hook_facetapi_empty_behaviors in ./
facetapi.api.php - Define all empty behavior plugins provided by the module.
File
- plugins/
facetapi/ empty_behavior.inc, line 108 - Base empty behavior plugin class and default implementation.
View source
class FacetapiEmptyBehaviorNone extends FacetapiEmptyBehavior {
/**
* Implements FacetapiEmptyBehavior::execute().
*/
public function execute() {
return array();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FacetapiEmptyBehavior:: |
protected | property | The machine readable name of facet configuration. | |
FacetapiEmptyBehavior:: |
protected | property | An array of facet settings. | |
FacetapiEmptyBehavior:: |
public | function | Provides default values for the plugin settings. | 1 |
FacetapiEmptyBehavior:: |
public | function | Allows the plugin to add settings to the display form. | 1 |
FacetapiEmptyBehavior:: |
public | function | Helper function for translating strings. | |
FacetapiEmptyBehavior:: |
public | function | Constructs a FacetapiEmptyBehavior object. | 1 |
FacetapiEmptyBehaviorNone:: |
public | function |
Implements FacetapiEmptyBehavior::execute(). Overrides FacetapiEmptyBehavior:: |