You are here

public function EckEntityTypeAddForm::buildForm in Entity Construction Kit (ECK) 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 EckEntityTypeFormBase::buildForm

File

src/Form/EntityType/EckEntityTypeAddForm.php, line 17

Class

EckEntityTypeAddForm
Provides the add form for ECK Entity Type.

Namespace

Drupal\eck\Form\EntityType

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form['id']['#maxlength'] = ECK_ENTITY_ID_MAX_LENGTH;
  return $form;
}