expense_tracker-1.2.1/src/Form/EtTransactionSettingsForm.php
src/Form/EtTransactionSettingsForm.php
<?php
namespace Drupal\expense_tracker\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Form for et_transaction settings.
*/
class EtTransactionSettingsForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'et_transaction_settings';
}
/**
* {@inheritdoc}
*/
protected function getEditableConfigNames() {
return [];
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
// This exists to make the field UI pages visible and must not be removed.
$form['account'] = array(
'#markup' => '<p>' . t('There are no settings yet.') . '</p>',
);
return $form;
}
}
