'#weight' => -1,
];
} return $form;
} /**
* {@inheritdoc}
*/
public function validateConfigurationForm(array &
$form, FormStateInterface
$form_state) { parent::
validateConfigurationForm($form,
$form_state);
// If no checkboxes were checked for 'target_bundles', store NULL ("all
// bundles are referenceable") rather than empty array ("no bundle is
// referenceable" - typically happens when all referenceable bundles have
// been deleted).
if ($form_state->
getValue(['settings', 'handler_settings', 'target_bundles'
]) ===
[]) { $form_state->
setValue(['settings', 'handler_settings', 'target_bundles'
], NULL
);
} // Don't store the 'target_bundles_update' button value into the field
// config settings.