You are here

public function FacetapiEmptyBehaviorText::execute in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/empty_behavior_text.inc \FacetapiEmptyBehaviorText::execute()
  2. 7 plugins/facetapi/empty_behavior_text.inc \FacetapiEmptyBehaviorText::execute()

Implements FacetapiEmptyBehavior::execute().

Overrides FacetapiEmptyBehavior::execute

File

plugins/facetapi/empty_behavior_text.inc, line 39
The empty_text empty behavior class.

Class

FacetapiEmptyBehaviorText
Empty behavior plugin that displays markup, usually just some text.

Code

public function execute() {
  $format_id = $this->settings['empty_text']['format'];
  $text = $this
    ->translate('empty_text', $this->settings['empty_text']['value']);
  return array(
    '#markup' => check_markup($text, $format_id),
  );
}