I am using domain access module in Drupal 8. I want to disable one option/site in domain access settings in node edit page . I am trying to disable through hook_node_form_alter. Following is my array in node form alter
Array (
[widget] => Array ( [#title] => Domain Access [#description] => stdClass Object ( [__CLASS__] => DrupalCoreFieldFieldFilteredMarkup [string] => Select the affiliate domain(s) for this content ) [#field_parents] => Array ( ) [#required] => 1 [#delta] => 0 [#weight] => 0 [#element_validate] => Array ( [0] => Array ( [0] => DrupalCoreFieldPluginFieldFieldWidgetOptionsButtonsWidget [1] => validateElement ) ) [#key_column] => target_id [#type] => checkboxes [#default_value] => Array ( [0] => site1 [1] => site3 ) [#options] => Array ( [master] => stdClass Object ( [__CLASS__] => DrupalCoreFieldFieldFilteredMarkup [string] => Master ) [site1] => stdClass Object ( [__CLASS__] => DrupalCoreFieldFieldFilteredMarkup [string] => Site 1 ) [site2] => stdClass Object ( [__CLASS__] => DrupalCoreFieldFieldFilteredMarkup [string] => Site 2 ) [site3] => stdClass Object ( [__CLASS__] => DrupalCoreFieldFieldFilteredMarkup [string] => Site 3 ) [site4] => stdClass Object ( [__CLASS__] => DrupalCoreFieldFieldFilteredMarkup [string] => Site 4 ) )
)