You are here

public function FacetapiEmptyBehaviorText::__construct in Facet API 7

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

Overrides FacetapiEmptyBehavior::__construct().

Checks if a format was selected, calls parent's constructor.

Overrides FacetapiEmptyBehavior::__construct

File

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

Class

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

Code

public function __construct(stdClass $settings) {
  if (isset($settings->settings['empty_text']['format'])) {
    $this->formatSet = TRUE;
  }
  parent::__construct($settings);
}