You are here

public function ConfigLister::getType in Configuration Update Manager 8

Returns the entity type object for a given config type name.

Parameters

string $name: Config entity type machine name.

Return value

\Drupal\Core\Entity\EntityTypeInterface Entity type object with machine name $name.

Overrides ConfigListInterface::getType

File

src/ConfigLister.php, line 107

Class

ConfigLister
Provides methods related to config listing.

Namespace

Drupal\config_update

Code

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