/**
* {@inheritdoc}
*/
public function buildOptionsForm(&
$form, FormStateInterface
$form_state) { parent::
buildOptionsForm($form,
$form_state);
$allowed_displays =
[];
$displays =
$this->view->storage->
get('display'
);
foreach ($displays as $display_id =>
$display) { if (!
$this->
isPathBasedDisplay($display_id)) { unset($displays[$display_id]);
continue;
} $allowed_displays[$display_id] =
$display['display_title'
];
} $form['description'
] =
[ [ '#markup' =>
$this->
t('To make sure the results are the same when switching to the other display, it is recommended to make sure the display:'
),
],
[