public function WidgetSettings::getAllowedSettings in Maxlength 8
Overrides WidgetSettingsInterface::getAllowedSettings
See also
\Drupal\maxlength\WidgetSettingsInterface::getAllowedSettings()
File
- src/
WidgetSettings.php, line 67
Class
- WidgetSettings
- The WidgetManager service.
Namespace
Drupal\maxlengthCode
public function getAllowedSettings($widget_plugin_id) {
$all_settings = $this
->getAllowedSettingsForAll();
if (!empty($all_settings[$widget_plugin_id])) {
return $all_settings[$widget_plugin_id];
}
return array();
}