BlockEntityOffCanvasForm::buildVisibilityInterface

protected BlockEntityOffCanvasForm::buildVisibilityInterface(array $form, FormStateInterface $form_state)

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/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 71

Class

BlockEntityOffCanvasForm
Provides form for block instance forms when used in the off-canvas tray.

Namespace

Drupal\outside_in\Block

Code

protected function buildVisibilityInterface(array $form, FormStateInterface $form_state) {
  // Do not display the visibility.
  return [];
}
doc_Drupal
2016-10-29 08:47:27
Comments
Leave a Comment

Please login to continue.