You are here

Checkbox.php in YAML Form 8

File

src/Plugin/YamlFormElement/Checkbox.php
View source
<?php

namespace Drupal\yamlform\Plugin\YamlFormElement;


/**
 * Provides a 'checkbox' element.
 *
 * @YamlFormElement(
 *   id = "checkbox",
 *   api = "https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Checkbox.php/class/Checkbox",
 *   label = @Translation("Checkbox"),
 *   category = @Translation("Basic elements"),
 * )
 */
class Checkbox extends BooleanBase {

  /**
   * {@inheritdoc}
   */
  public function getDefaultProperties() {
    return [
      'title_display' => 'after',
    ] + parent::getDefaultProperties();
  }

}

Classes

Namesort descending Description
Checkbox Provides a 'checkbox' element.