podcast_publisher-1.0.0-alpha3/src/Form/PodcastEpisodeSettingsForm.php
src/Form/PodcastEpisodeSettingsForm.php
<?php
namespace Drupal\podcast_publisher\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Configuration form for a podcast episode entity type.
*/
class PodcastEpisodeSettingsForm extends FormBase {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'podcast_episode_settings';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['settings'] = [
'#markup' => $this->t('Settings form for a podcast episode entity type.'),
];
$form['actions'] = [
'#type' => 'actions',
];
$form['actions']['submit'] = [
'#type' => 'submit',
'#value' => $this->t('Save'),
];
return $form;
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->messenger()->addStatus($this->t('The configuration has been updated.'));
}
}
