You are here

protected function ContentModelUpdater::getConfigEntity in Panopoly 8.2

Gets a configuration entity.

Parameters

string $id: The full config entity ID, with provider and type/config prefix.

Return value

\Drupal\Core\Config\Entity\ConfigEntityInterface The configuration entity.

File

modules/panopoly/panopoly_media/src/Update/ContentModelUpdater.php, line 973

Class

ContentModelUpdater
Applies changes to media content model from schema versions 8204 to 8205.

Namespace

Drupal\panopoly_media\Update

Code

protected function getConfigEntity($id) {
  list($provider, $config_prefix, $id) = explode('.', $id, 3);
  $class = $this
    ->getConfigEntityClass($provider, $config_prefix);

  /** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $config */
  return $class::load($id);
}