abstract class MessageNotifyUiSenderSettingsFormBase in Message UI 8
Base class for Message notify ui sender settings form plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\message_notify_ui\MessageNotifyUiSenderSettingsFormBase implements MessageNotifyUiSenderSettingsFormInterface
Expanded class hierarchy of MessageNotifyUiSenderSettingsFormBase
1 file declares its use of MessageNotifyUiSenderSettingsFormBase
- MessageNotifyUiSenderMailSettingsForm.php in modules/
message_notify_ui/ src/ Plugin/ MessageNotifyUiSenderSettingsForm/ MessageNotifyUiSenderMailSettingsForm.php
File
- modules/
message_notify_ui/ src/ MessageNotifyUiSenderSettingsFormBase.php, line 12
Namespace
Drupal\message_notify_uiView source
abstract class MessageNotifyUiSenderSettingsFormBase extends PluginBase implements MessageNotifyUiSenderSettingsFormInterface {
/**
* The form settings.
*
* @var array
*/
protected $form;
/**
* The form state interface.
*
* @var \Drupal\Core\Form\FormStateInterface
*/
protected $formState;
/**
* The message object.
*
* @var \Drupal\message\Entity\Message
*/
protected $message;
/**
* Setter for the form variable.
*
* @param array $form
* The form API.
*
* @return $this
*/
public function setForm(array $form) {
$this->form = $form;
return $this;
}
/**
* Get the form API element.
*
* @return array
* The form API variable.
*/
public function getForm() {
return $this->form;
}
/**
* Return the form state object.
*
* @return \Drupal\Core\Form\FormStateInterface
* The form state object.
*/
public function getFormState() {
return $this->formState;
}
/**
* Set the form state.
*
* @param \Drupal\Core\Form\FormStateInterface $formState
* The form state object.
*
* @return $this
*/
public function setFormState(FormStateInterface $formState) {
$this->formState = $formState;
return $this;
}
/**
* Get the message object.
*
* @return \Drupal\message\Entity\Message
* The message object.
*/
public function getMessage() {
return $this->message;
}
/**
* Set the message object.
*
* @param \Drupal\message\Entity\Message $message
* The message object.
*
* @return $this
* The current object.
*/
public function setMessage(Message $message) {
$this->message = $message;
return $this;
}
/**
* {@inheritdoc}
*/
public function validate(array $form, FormStateInterface $formState) {
// Usually, there is nothing to validate.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MessageNotifyUiSenderSettingsFormBase:: |
protected | property | The form settings. | |
MessageNotifyUiSenderSettingsFormBase:: |
protected | property | The form state interface. | |
MessageNotifyUiSenderSettingsFormBase:: |
protected | property | The message object. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function | Get the form API element. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function | Return the form state object. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function | Get the message object. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function | Setter for the form variable. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function | Set the form state. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function | Set the message object. | |
MessageNotifyUiSenderSettingsFormBase:: |
public | function |
Validating the form. Overrides MessageNotifyUiSenderSettingsFormInterface:: |
1 |
MessageNotifyUiSenderSettingsFormInterface:: |
public | function | The form settings for the plugin. | 1 |
MessageNotifyUiSenderSettingsFormInterface:: |
public | function | Implementing logic for sender which relate to the plugin. | 1 |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |