public function SettingsTrait::getSettingOverrides in Markdown 8.2
File
- src/
Traits/ SettingsTrait.php, line 125
Class
- SettingsTrait
- Trait for installable plugins that implement settings.
Namespace
Drupal\markdown\TraitsCode
public function getSettingOverrides($runtime = FALSE, $sorted = TRUE, array $settings = NULL) {
if (!isset($settings)) {
$settings = $this
->getSettings($runtime, FALSE);
}
$overridden = DiffArray::diffAssocRecursive($settings, static::defaultSettings($this
->getPluginDefinition()));
if ($sorted && $overridden) {
SortArray::recursiveKeySort($overridden);
}
return $overridden;
}