ComputedStringWidget.php in Computed Field 8.2
Same filename and directory in other branches
File
src/Plugin/Field/FieldWidget/ComputedStringWidget.phpView 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
Name | Description |
---|---|
ComputedStringWidget | Plugin implementation of the 'computed_string_widget' widget. |