protected function InstallablePluginBase::getConfigurationSortOrder in Markdown 8.2
Determines the configuration sort order by weight.
Return value
int[] An array of weights, keyed by top level configuration property names.
2 calls to InstallablePluginBase::getConfigurationSortOrder()
- BaseParser::getConfigurationSortOrder in src/
Plugin/ Markdown/ BaseParser.php - Determines the configuration sort order by weight.
- InstallablePluginBase::getSortedConfiguration in src/
Plugin/ Markdown/ InstallablePluginBase.php - Retrieves the configuration for the plugin, but sorted.
1 method overrides InstallablePluginBase::getConfigurationSortOrder()
- BaseParser::getConfigurationSortOrder in src/
Plugin/ Markdown/ BaseParser.php - Determines the configuration sort order by weight.
File
- src/
Plugin/ Markdown/ InstallablePluginBase.php, line 173
Class
- InstallablePluginBase
- Base class for installable plugins.
Namespace
Drupal\markdown\Plugin\MarkdownCode
protected function getConfigurationSortOrder() {
$order = [
'dependencies' => -100,
'id' => -50,
'weight' => -30,
];
if ($this instanceof EnabledPluginInterface) {
$order['enabled'] = -20;
}
if ($this instanceof SettingsInterface) {
$order['settings'] = -10;
}
return $order;
}