You are here

protected function BlockEntitySettingTrayForm::buildVisibilityInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php \Drupal\settings_tray\Block\BlockEntitySettingTrayForm::buildVisibilityInterface()
  2. 9 core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php \Drupal\settings_tray\Block\BlockEntitySettingTrayForm::buildVisibilityInterface()

Helper function for building the visibility UI form.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form array with the visibility UI added in.

Overrides BlockForm::buildVisibilityInterface

File

core/modules/settings_tray/src/Block/BlockEntitySettingTrayForm.php, line 92

Class

BlockEntitySettingTrayForm
Provides form for block instance forms when used in the off-canvas dialog.

Namespace

Drupal\settings_tray\Block

Code

protected function buildVisibilityInterface(array $form, FormStateInterface $form_state) {

  // Do not display the visibility.
  return [];
}