You are here

ComputedStringWidget.php in Computed Field 8.2

Same filename and directory in other branches
  1. 3.x src/Plugin/Field/FieldWidget/ComputedStringWidget.php

File

src/Plugin/Field/FieldWidget/ComputedStringWidget.php
View source
<?php

namespace Drupal\computed_field\Plugin\Field\FieldWidget;


/**
 * Plugin implementation of the 'computed_string_widget' widget.
 *
 * @FieldWidget(
 *   id = "computed_string_widget",
 *   label = @Translation("Computed (visually hidden)"),
 *   field_types = {
 *     "computed_string",
 *     "computed_string_long",
 *   }
 * )
 */
class ComputedStringWidget extends ComputedWidgetBase {

  /**
   * Define how the widget is constructed.
   */
  public function getDefaultValue() {
    return '';
  }

}

Classes

Namesort descending Description
ComputedStringWidget Plugin implementation of the 'computed_string_widget' widget.