protected EntityViewDisplayEditForm::buildExtraFieldRow($field_id, $extra_field)
Builds the table row structure for a single extra field.
Parameters
string $field_id: The field ID.
array $extra_field: The pseudo-field element.
Return value
array A table row array.
Overrides EntityDisplayFormBase::buildExtraFieldRow
File
- core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 68
Class
- EntityViewDisplayEditForm
- Edit form for the EntityViewDisplay entity type.
Namespace
Drupal\field_ui\Form
Code
protected function buildExtraFieldRow($field_id, $extra_field) { $extra_field_row = parent::buildExtraFieldRow($field_id, $extra_field); // Insert an empty placeholder for the label column. $label = array( 'empty_cell' => array( '#markup' => ' ' ) ); $label_position = array_search('plugin', array_keys($extra_field_row)); $extra_field_row = array_slice($extra_field_row, 0, $label_position, TRUE) + $label + array_slice($extra_field_row, $label_position, count($extra_field_row) - 1, TRUE); return $extra_field_row; }
Please login to continue.