You are here

private function StockLevelWidgetBase::hasHelpText in Commerce Stock 8

Whether a help text is available.

Return value

bool TRUE if a help text is availabel, FALSE otherwise.

1 call to StockLevelWidgetBase::hasHelpText()
StockLevelWidgetBase::settingsForm in modules/field/src/Plugin/Field/FieldWidget/StockLevelWidgetBase.php
Returns a form to configure settings for the widget.

File

modules/field/src/Plugin/Field/FieldWidget/StockLevelWidgetBase.php, line 266

Class

StockLevelWidgetBase
Provides the base structure for commerce stock level widgets.

Namespace

Drupal\commerce_stock_field\Plugin\Field\FieldWidget

Code

private function hasHelpText() {
  return !empty($this
    ->getHelpText());
}