You are here

public function ConfigLister::getTypeByPrefix in Configuration Update Manager 8

Returns the entity type object for a given config prefix.

Parameters

string $prefix: Config prefix.

Return value

\Drupal\Core\Entity\EntityTypeInterface Entity type object corresponding to $prefix.

Overrides ConfigListInterface::getTypeByPrefix

File

src/ConfigLister.php, line 115

Class

ConfigLister
Provides methods related to config listing.

Namespace

Drupal\config_update

Code

public function getTypeByPrefix($prefix) {
  $definitions = $this
    ->listTypes();
  return isset($this->typesByPrefix[$prefix]) ? $definitions[$this->typesByPrefix[$prefix]] : NULL;
}