You are here

protected function FieldWidgetComponentType::getFieldDefinition in Flexiform 8

Get a field definition.

2 calls to FieldWidgetComponentType::getFieldDefinition()
FieldWidgetComponentType::getApplicableRendererPluginOptions in src/Plugin/FormComponentType/FieldWidgetComponentType.php
Get applicable renderer plugin options.
FieldWidgetComponentType::getComponent in src/Plugin/FormComponentType/FieldWidgetComponentType.php
Get a component object.

File

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

Class

FieldWidgetComponentType
Plugin for field widget component types.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

protected function getFieldDefinition($component_name) {
  $defs = $this
    ->getFieldDefinitions();
  return !empty($defs[$component_name]) ? $defs[$component_name] : NULL;
}