class BoxTestPlugin in Boxes 7.2
Hierarchy
- class \BoxPlugin implements BoxTypePluginInterface- class \BoxTestPlugin
 
Expanded class hierarchy of BoxTestPlugin
2 string references to 'BoxTestPlugin'
- boxes_test_boxes_types in tests/boxes_test.module 
- Implements hook_box_types().
- BoxTests::testBoxTypeURL in ./boxes.test 
- Test the URL of the boxes types
File
- tests/boxes_test.module, line 61 
View source
class BoxTestPlugin extends BoxPlugin {
  public function values() {
    return array(
      'test_boolean' => TRUE,
      'test_string' => t('String'),
      'test_array' => array(
        'test_array_1' => 'test_array_1',
      ),
    );
  }
  public function form($box, $form, &$form_state) {
    $form = array();
    $form['test_boolean'] = array(
      '#type' => 'textfield',
      '#title' => t('String'),
      '#default_value' => $box->test_string,
    );
    $form['test_boolean'] = array(
      '#type' => 'checkbox',
      '#title' => t('Boolean'),
      '#default_value' => $box->test_boolean,
    );
    $form['test_array'] = array(
      '#type' => 'string',
      '#title' => t('Array'),
      '#default_value' => $box->test_array['test_array_1'],
    );
    return $form;
  }
} 
      