public function BlazyEntityInterface::getEntityView in Blazy 8.2
Returns the entity view, if available.
Parameters
object $entity: The entity being rendered.
array $settings: The settings containing view_mode.
string $fallback: The fallback content when all fails, probably just entity label.
Return value
array|bool The renderable array of the view builder, or false if not applicable.
1 method overrides BlazyEntityInterface::getEntityView()
- BlazyEntity::getEntityView in src/
BlazyEntity.php - Returns the entity view, if available.
File
- src/
BlazyEntityInterface.php, line 44
Class
- BlazyEntityInterface
- Provides common entity utilities to work with field details.
Namespace
Drupal\blazyCode
public function getEntityView($entity, array $settings = [], $fallback = '');