ActivitySettingsForm.php in Open Social 8.8
Same filename and directory in other branches
- 8.9 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8.2 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8.3 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8.4 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8.5 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8.6 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 8.7 modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 10.3.x modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 10.0.x modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 10.1.x modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
- 10.2.x modules/custom/activity_creator/src/Form/ActivitySettingsForm.php
Namespace
Drupal\activity_creator\FormFile
modules/custom/activity_creator/src/Form/ActivitySettingsForm.phpView source
<?php
namespace Drupal\activity_creator\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class ActivitySettingsForm.
*
* @package Drupal\activity_creator\Form
*
* @ingroup activity_creator
*/
class ActivitySettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'Activity_settings';
}
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* Defines the settings form for Activity entities.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['Activity_settings']['#markup'] = 'Settings form for Activity entities. Manage field settings here.';
return $form;
}
}
Classes
Name | Description |
---|---|
ActivitySettingsForm | Class ActivitySettingsForm. |