You are here

public function FlexiformElementField::getWidgetLabel in Flexiform 7

Get the widget label from the instance settings.

Return value

string Human readable name of the field widget.

File

includes/element/field.element.inc, line 87
Contains FlexiformElementField class.

Class

FlexiformElementField
Class for Field API elements.

Code

public function getWidgetLabel() {
  $widget_types = field_info_widget_types();
  return $widget_types[$this
    ->getWidgetType()]['label'];
}