You are here

public function EntityType::getLowercaseLabel in Drupal 8

Gets the lowercase form of the human-readable entity type name.

Return value

string The lowercase form of the human-readable entity type name.

Overrides EntityTypeInterface::getLowercaseLabel

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, you should call getSingularLabel(). See https://www.drupal.org/node/3075567

See also

\Drupal\Core\Entity\EntityTypeInterface::getLabel()

File

core/lib/Drupal/Core/Entity/EntityType.php, line 779

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getLowercaseLabel() {
  @trigger_error('EntityType::getLowercaseLabel() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, you should call getSingularLabel(). See https://www.drupal.org/node/3075567', E_USER_DEPRECATED);
  return mb_strtolower($this
    ->getLabel());
}