You are here

public function FlexiformElementField::getWidgetType in Flexiform 7

Get the widget type from the instance settings.

Return value

string Machine name of the field widget in use.

2 calls to FlexiformElementField::getWidgetType()
FlexiformElementField_entityreference::form in includes/element/fields/entityreference.inc
Return the form element for this FlexiformElement.
FlexiformElementField_entityreference::formAlterAutocompleteElement in includes/element/fields/entityreference.inc
Alter the selection element.

File

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

Class

FlexiformElementField
Class for Field API elements.

Code

public function getWidgetType() {
  $instance = $this
    ->getInstance();
  return $instance['widget']['type'];
}