protected function SmartIpAdminSettingsForm::getEditableConfigNames in Smart IP 8.3
Same name and namespace in other branches
- 8.4 src/Form/SmartIpAdminSettingsForm.php \Drupal\smart_ip\Form\SmartIpAdminSettingsForm::getEditableConfigNames()
- 8.2 src/Form/SmartIpAdminSettingsForm.php \Drupal\smart_ip\Form\SmartIpAdminSettingsForm::getEditableConfigNames()
Gets the configuration names that will be editable.
Return value
array An array of configuration object names that are editable if called in conjunction with the trait's config() method.
Overrides ConfigFormBaseTrait::getEditableConfigNames
File
- src/
Form/ SmartIpAdminSettingsForm.php, line 37 - Contains \Drupal\smart_ip\Form\SmartIpAdminSettingsForm.
Class
- SmartIpAdminSettingsForm
- Smart IP main admin settings page.
Namespace
Drupal\smart_ip\FormCode
protected function getEditableConfigNames() {
$configNames = [
'smart_ip.settings',
];
/** @var \Drupal\smart_ip\AdminSettingsEvent $event */
$event = \Drupal::service('smart_ip.admin_settings_event');
// Allow Smart IP source module to add their config names.
$event
->setEditableConfigNames($configNames);
\Drupal::service('event_dispatcher')
->dispatch(SmartIpEvents::GET_CONFIG_NAME, $event);
$configNames = $event
->getEditableConfigNames();
return $configNames;
}