public function BlazyEntityInterface::entityView in Blazy 7
Returns the entity view, if available.
Parameters
string $entity_type: The entity type being rendered.
object $entity: The entity being rendered.
array $settings: The settings containing view_mode, etc to reduce params for the known.
string $fallback: The fallback content when all fails, probably just entity label.
Return value
array The renderable array of the view builder, or empty if not applicable.
File
- src/
BlazyEntityInterface.php, line 43
Class
- BlazyEntityInterface
- Provides common entity utilities to work with field details.
Namespace
Drupal\blazyCode
public function entityView($entity_type, $entity, array $settings, $fallback = '');