public function EntityManagerWrapper::hasDefinition in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::hasDefinition()
- 8 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::hasDefinition()
- 8.2 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::hasDefinition()
Indicates if a specific plugin definition exists.
Parameters
string $plugin_id: A plugin ID.
Return value
bool TRUE if the definition exists, FALSE otherwise.
Overrides DiscoveryTrait::hasDefinition
File
- webprofiler/
src/ Entity/ EntityManagerWrapper.php, line 146
Class
- EntityManagerWrapper
- Class EntityManagerWrapper.
Namespace
Drupal\webprofiler\EntityCode
public function hasDefinition($plugin_id) {
return $this->entityTypeManager
->hasDefinition($plugin_id);
}