function EntityStorageInterface::getEntityClass

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::getEntityClass()
  2. 10 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::getEntityClass()

Retrieves the class name used to create the entity.

Parameters

string|null $bundle: (optional) A specific entity type bundle identifier. Can be omitted in the case of entity types without bundles, like User.

Return value

string The entity class name.

1 method overrides EntityStorageInterface::getEntityClass()
EntityStorageBase::getEntityClass in core/lib/Drupal/Core/Entity/EntityStorageBase.php

File

core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 211

Class

EntityStorageInterface
Defines the interface for entity storage classes.

Namespace

Drupal\Core\Entity

Code

public function getEntityClass(?string $bundle = NULL) : string;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.