public function ConsumerForm::form in Consumers 8
Gets the actual form array to be built.
Overrides ContentEntityForm::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
Entity/ Form/ ConsumerForm.php, line 16
Class
- ConsumerForm
- Form controller for Consumer edit forms.
Namespace
Drupal\consumers\Entity\FormCode
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
$form['is_default']['#access'] = FALSE;
return $form;
}