You are here

public function PrintableEntityManagerInterface::getEntityName in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x src/PrintableEntityManagerInterface.php \Drupal\printable\PrintableEntityManagerInterface::getEntityName()

Gets the ID of the type of the entity.

Parameters

Drupal\Core\Entity\EntityInterface $entity: The entity to check a printable version is available for.

Return value

string The entity type ID.

1 method overrides PrintableEntityManagerInterface::getEntityName()
PrintableEntityManager::getEntityName in src/PrintableEntityManager.php
Gets the ID of the type of the entity.

File

src/PrintableEntityManagerInterface.php, line 21

Class

PrintableEntityManagerInterface
Entity manager interface for the printable module.

Namespace

Drupal\printable

Code

public function getEntityName(EntityInterface $entity);