public static function PushManager::submitForm in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::submitForm()
- 8.7 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::submitForm()
- 10.3.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::submitForm()
- 10.0.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::submitForm()
- 10.1.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::submitForm()
- 10.2.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::submitForm()
Save settings of plugin instances.
Parameters
array $form: The form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
File
- modules/
custom/ activity_send/ modules/ activity_send_push_notification/ src/ PushManager.php, line 68
Class
- PushManager
- Class PushManager.
Namespace
Drupal\activity_send_push_notificationCode
public static function submitForm(array $form, FormStateInterface $form_state) {
/** @var \Drupal\Component\Plugin\PluginManagerInterface $service */
$service = \Drupal::service('plugin.manager.push');
foreach ($service
->getDefinitions() as $plugin_id => $definition) {
/** @var \Drupal\activity_send_push_notification\PushInterface $plugin */
$plugin = $service
->createInstance($plugin_id);
if ($plugin
->access()) {
$plugin
->submitForm($form_state);
}
}
}