You are here

WebformSame.php in Webform 8.5

Same filename in this branch
  1. 8.5 src/Element/WebformSame.php
  2. 8.5 src/Plugin/WebformElement/WebformSame.php
Same filename and directory in other branches
  1. 6.x src/Element/WebformSame.php

File

src/Element/WebformSame.php
View source
<?php

namespace Drupal\webform\Element;

use Drupal\Core\Render\Element\Checkbox;

/**
 * Provides a webform element for managing same as.
 *
 * @FormElement("webform_same")
 *
 * @see \Drupal\webform\Plugin\WebformElement\WebformSame
 */
class WebformSame extends Checkbox {

  /**
   * {@inheritdoc}
   */
  public function getInfo() {
    return parent::getInfo() + [
      '#source' => NULL,
      '#destination' => NULL,
      '#destination_state' => 'visible',
    ];
  }

}

Classes

Namesort descending Description
WebformSame Provides a webform element for managing same as.