protected function SelectOrOtherWidgetBase::getColumn in Select (or other) 8.3
Helper method to determine the identifying column for the field.
Return value
string The name of the column.
1 call to SelectOrOtherWidgetBase::getColumn()
- SelectOrOtherWidgetBase::formElement in src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php - Returns the form for a single field widget.
File
- src/
Plugin/ Field/ FieldWidget/ SelectOrOtherWidgetBase.php, line 48 - Contains \Drupal\select_or_other\Plugin\Field\FieldWidget\SelectOrOtherWidgetBase.
Class
- SelectOrOtherWidgetBase
- Base class for the 'select_or_other_*' widgets.
Namespace
Drupal\select_or_other\Plugin\Field\FieldWidgetCode
protected function getColumn() {
static $property_names;
if (empty($property_names)) {
$property_names = $this->fieldDefinition
->getFieldStorageDefinition()
->getPropertyNames();
}
return reset($property_names);
}