You are here

public function EntityDataProviderManager::isRegistered in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/DataProvider/EntityDataProviderManager.php \Drupal\gutenberg\DataProvider\EntityDataProviderManager::isRegistered()

Check if data provider for specified entity type exists.

Parameters

string $data_provider: Machine name of a data provider (entity type machine name).

Return value

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

Overrides EntityDataProviderManagerInterface::isRegistered

2 calls to EntityDataProviderManager::isRegistered()
EntityDataProviderManager::getData in src/DataProvider/EntityDataProviderManager.php
Get data for specified entity type.
EntityDataProviderManager::registerDataProvider in src/DataProvider/EntityDataProviderManager.php
Register entity type data provider.

File

src/DataProvider/EntityDataProviderManager.php, line 46

Class

EntityDataProviderManager
Supports management for entity type data providers.

Namespace

Drupal\gutenberg\DataProvider

Code

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