if ($item) { $handler =
$executable->display_handler->
getHandler($type,
$id);
if (empty($handler)) { $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) {