$form['markup'
] =
['#markup' =>
$this->
t("Error: handler for @table > @field doesn't exist!",
['@table' =>
$item['table'
], '@field' =>
$item['field'
]])];
} else { $types = ViewExecutable::
getHandlerTypes();
$form['#title'
] =
$this->
t('Configure @type: @item',
['@type' =>
$types[$type]['lstitle'
], '@item' =>
$handler->
adminLabel()]);
// If this item can come from the default display, show a dropdown
// that lets the user choose which display the changes should apply to.
if ($executable->display_handler->
defaultableSections($types[$type]['plural'
])) { $section =
$types[$type]['plural'
];
$form_state->
set('section',
$section);
views_ui_standard_display_dropdown($form,
$form_state,
$section);
} // A whole bunch of code to figure out what relationships are valid for
// this item.
$relationships =
$executable->display_handler->
getOption('relationships'
);
$relationship_options =
[];
foreach ($relationships as $relationship) { // relationships can't link back to self. But also, due to ordering,
// relationships can only link to prior relationships.
if ($type == 'relationship' &&
$id ==
$relationship['id'
]) {