EckEntityTypeAddForm.php in Entity Construction Kit (ECK) 8
File
src/Form/EntityType/EckEntityTypeAddForm.php
View source
<?php
namespace Drupal\eck\Form\EntityType;
use Drupal\Core\Form\FormStateInterface;
class EckEntityTypeAddForm extends EckEntityTypeFormBase {
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['id']['#maxlength'] = ECK_ENTITY_ID_MAX_LENGTH;
return $form;
}
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Create entity type');
return $actions;
}
}