You are here

private static function DoubleField::isLabelSupported in Double Field 8.3

Determines whether or not widget can render subfield label.

3 calls to DoubleField::isLabelSupported()
DoubleField::formElement in src/Plugin/Field/FieldWidget/DoubleField.php
Returns the form for a single field widget.
DoubleField::settingsForm in src/Plugin/Field/FieldWidget/DoubleField.php
Returns a form to configure settings for the widget.
DoubleField::settingsSummary in src/Plugin/Field/FieldWidget/DoubleField.php
Returns a short summary for the current widget settings.

File

src/Plugin/Field/FieldWidget/DoubleField.php, line 551

Class

DoubleField
Plugin implementation of the 'double_field' widget.

Namespace

Drupal\double_field\Plugin\Field\FieldWidget

Code

private static function isLabelSupported($widget_type) {
  return $widget_type != 'checkbox' && $widget_type != 'datetime';
}