You are here

public function MediaSelectionProcessorManager::isRegistered in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/MediaSelectionProcessor/MediaSelectionProcessorManager.php \Drupal\gutenberg\MediaSelectionProcessor\MediaSelectionProcessorManager::isRegistered()

Check if media selection processor is registered in the manager.

Parameters

string $processor_name: Name of media selection processor.

Return value

bool TRUE if the specified processor type exists, FALSE otherwise.

2 calls to MediaSelectionProcessorManager::isRegistered()
MediaSelectionProcessorManager::process in src/MediaSelectionProcessor/MediaSelectionProcessorManager.php
Process media selection data by provided processor.
MediaSelectionProcessorManager::registerProcessor in src/MediaSelectionProcessor/MediaSelectionProcessorManager.php
Register media selection processor.

File

src/MediaSelectionProcessor/MediaSelectionProcessorManager.php, line 70

Class

MediaSelectionProcessorManager
Provides management for tagged media selection processor services.

Namespace

Drupal\gutenberg\MediaSelectionProcessor

Code

public function isRegistered(string $processor_name) {
  return array_key_exists($processor_name, $this->processors);
}