Volume.php in Dimension 8
Same filename in this branch
Same filename and directory in other branches
File
src/Plugin/Field/FieldWidget/Volume.phpView source
<?php
namespace Drupal\dimension\Plugin\Field\FieldWidget;
use Drupal\dimension\Plugin\Field\VolumeTrait;
/**
* Plugin implementation of the 'volume_field_widget' widget.
*
* @FieldWidget(
* id = "volume_field_widget",
* label = @Translation("Dimension: Volume field"),
* field_types = {
* "volume_field_type"
* }
* )
*/
class Volume extends Dimension {
use VolumeTrait;
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
return self::_defaultSettings(self::fields());
}
}