You are here

public static function RulesDataUINumberBoolean::render in Boolean Field 7

Render the configured value.

Return value

array A renderable array.

Overrides RulesDataDirectInputFormInterface::render

File

./boolean.rules.inc, line 42
Provides integration with Rules module.

Class

RulesDataUINumberBoolean
UI for boolean data.

Code

public static function render($value) {
  $states = boolean_value_info();
  return array(
    'content' => array(
      '#markup' => $states[$value],
    ),
    '#attributes' => array(
      'class' => array(
        'rules-parameter-number-boolean',
      ),
    ),
  );
}