protected function GutenbergBlockProcessorManager::sortProcessors in Gutenberg 8.2
Sorts the processors according to priority.
1 call to GutenbergBlockProcessorManager::sortProcessors()
- GutenbergBlockProcessorManager::getSortedProcessors in src/
BlockProcessor/ GutenbergBlockProcessorManager.php - Gets the sorted array of block processors.
File
- src/
BlockProcessor/ GutenbergBlockProcessorManager.php, line 60
Class
- GutenbergBlockProcessorManager
- Gutenberg block processor manager.
Namespace
Drupal\gutenberg\BlockProcessorCode
protected function sortProcessors() {
$sorted = [];
krsort($this->blockProcessors);
foreach ($this->blockProcessors as $processors) {
$sorted = array_merge($sorted, $processors);
}
return $sorted;
}