You are here

protected function FieldWidgetComponentType::getDefaultRendererPlugin in Flexiform 8

Get the default renderer plugin.

Parameters

string $component_name: The component name.

Return value

string The default region.

Overrides FormComponentTypeBase::getDefaultRendererPlugin

File

src/Plugin/FormComponentType/FieldWidgetComponentType.php, line 183

Class

FieldWidgetComponentType
Plugin for field widget component types.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

protected function getDefaultRendererPlugin($component_name) {
  $type = $this
    ->getFieldDefinition($component_name)
    ->getType();
  return isset($this->fieldTypes[$type]['default_widget']) ? $this->fieldTypes[$type]['default_widget'] : NULL;
}