public function DeviceListBuilder::buildForm in Responsive Theme Preview 8
Form constructor.
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 structure.
Overrides DraggableListBuilder::buildForm
File
- src/
DeviceListBuilder.php, line 60
Class
- DeviceListBuilder
- Provides a listing of Device entities.
Namespace
Drupal\responsive_previewCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
if (empty($this->entities)) {
$form['actions']['#access'] = FALSE;
}
return $form;
}