You are here

public function GutenbergBlockProcessorManager::getSortedProcessors in Gutenberg 8.2

Gets the sorted array of block processors.

Return value

GutenbergBlockProcessorInterface[] An array of processor objects.

File

src/BlockProcessor/GutenbergBlockProcessorManager.php, line 49

Class

GutenbergBlockProcessorManager
Gutenberg block processor manager.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function getSortedProcessors() {
  if ($this->sortedProcessors === NULL) {
    $this->sortedProcessors = $this
      ->sortProcessors();
  }
  return $this->sortedProcessors;
}