/** @inheritdoc */ public function __construct(RenderInterface $renderer, QueryInterface $query, Record $entity) { // Add fields $this->fields = array(new Generic('f_name', t('Имя', true), 0), new Generic('s_name', t('Фамилия', true), 0), new Generic('t_name', t('Отчество', true), 0), new Generic('email', t('Email', true), 0), new Generic('md5_password', t('Пароль', true), 0), new FormGroup('group_id', t('Группа', true))); // Call parent constructor to define all class fields parent::__construct($renderer, $query, $entity); }
/** @inheritdoc */ public function __construct(RenderInterface $renderer, QueryInterface $query, Record $entity) { // Add generic material entity fields $this->fields = array(new Generic('Name', t('Название', true), 0), new Url('Url', t('Url', true), 12)); // Call parent constructor to define all class fields parent::__construct($renderer, $query, $entity); }