abstract public function FacetapiWidget::execute in Facet API 7
Same name and namespace in other branches
- 6.3 plugins/facetapi/widget.inc \FacetapiWidget::execute()
- 7.2 plugins/facetapi/widget.inc \FacetapiWidget::execute()
Executes the widget plugin by altering FacetapiWidget::build.
Implementing plugins use this method to transform the initialized render array into something that will product the desired UI component. See the documentation at http://drupal.org/node/930760 for more information on how to work with render arrays.
For code readability, it is best practice to add the following snippet as the first line of the method so developers can act directly on the $element variable as opposed to a nested array.
<code> public function execute() { $element = &$this->build[$this->facet['field alias']];
} </code>
See also
1 method overrides FacetapiWidget::execute()
- FacetapiWidgetLinks::execute in plugins/
facetapi/ widget_links.inc - Implements FacetapiWidget::execute().
File
- plugins/
facetapi/ widget.inc, line 211 - Base widget plugin class and helper functions for facet sorting.
Class
- FacetapiWidget
- Abstract class extended by widget plugins.
Code
public abstract function execute();