PostSettingsForm.php in Open Social 10.2.x
Same filename and directory in other branches
- 8.9 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.2 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.3 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.4 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.5 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.6 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.7 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 8.8 modules/social_features/social_post/src/Form/PostSettingsForm.php
- 10.3.x modules/social_features/social_post/src/Form/PostSettingsForm.php
- 10.0.x modules/social_features/social_post/src/Form/PostSettingsForm.php
- 10.1.x modules/social_features/social_post/src/Form/PostSettingsForm.php
Namespace
Drupal\social_post\FormFile
modules/social_features/social_post/src/Form/PostSettingsForm.phpView source
<?php
namespace Drupal\social_post\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class PostSettingsForm.
*
* @package Drupal\social_post\Form
*
* @ingroup social_post
*/
class PostSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'Post_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 Post 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['Post_settings']['#markup'] = $this
->t('Settings form for Post entities. Manage field settings here.');
return $form;
}
}
Classes
Name | Description |
---|---|
PostSettingsForm | Class PostSettingsForm. |