public function FlippingBook::getTypeLabel in Flipping Book 8
Gets the Flipping Book type label.
Return value
string The Flipping Book type label.
File
- src/
Entity/ FlippingBook.php, line 95
Class
- FlippingBook
- Defines the Flipping Book entity.
Namespace
Drupal\flipping_book\EntityCode
public function getTypeLabel() {
$storage = $this
->entityTypeManager()
->getStorage('flipping_book_type');
$flipping_book_type = $storage
->load($this
->bundle());
return $flipping_book_type
->label();
}