$container->
get('plugin.manager.field.field_type'
),
$container->
get('plugin.manager.field.formatter'
),
$container->
get('entity_display.repository'
),
$container->
get('entity_field.manager'
) );
} /**
* {@inheritdoc}
*/
protected function buildFieldRow(FieldDefinitionInterface
$field_definition, array
$form, FormStateInterface
$form_state) { $field_row = parent::
buildFieldRow($field_definition,
$form,
$form_state);
$field_name =
$field_definition->
getName();
$display_options =
$this->entity->
getComponent($field_name);
// Insert the label column.
$label =
[ 'label' =>
[ '#type' => 'select',
'#title' =>
$this->
t('Label display for @title',
['@title' =>
$field_definition->
getLabel()]),
'#title_display' => 'invisible',
'#options' =>
$this->
getFieldLabelOptions(),