public function EntityManager::getDefinition

Overrides Drupal\Component\Plugin\PluginManagerBase::getDefinition().

Overrides PluginManagerBase::getDefinition

File

drupal/core/lib/Drupal/Core/Entity/EntityManager.php, line 247
Contains \Drupal\Core\Entity\EntityManager.

Class

EntityManager
Manages entity type plugin definitions.

Namespace

Drupal\Core\Entity

Code

public function getDefinition($plugin_id) {
  $definitions = $this
    ->getDefinitions();
  return isset($definitions[$plugin_id]) ? $definitions[$plugin_id] : NULL;
}