protected function BlockEntitySettingTrayForm::buildVisibilityInterface in Drupal 9
Same name and namespace in other branches
- 8 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\BlockCode
protected function buildVisibilityInterface(array $form, FormStateInterface $form_state) {
// Do not display the visibility.
return [];
}