You are here

public function PanelizerEntityInterface::get_view_mode in Panelizer 7.3

Confirm the view mode to be used, check if a substitute is assigned, failover to 'default'.

Parameters

string $view_mode: The original view mode to be checked.

string $bundle: The entity bundle being used.

Return value

string The final view mode that will be used.

1 method overrides PanelizerEntityInterface::get_view_mode()
PanelizerEntityDefault::get_view_mode in plugins/entity/PanelizerEntityDefault.class.php
Identify the view mode that will actually be used for a specific request.

File

plugins/entity/PanelizerEntityDefault.class.php, line 171
Base class for the Panelizer Entity plugin.

Class

PanelizerEntityInterface
Interface to describe how PanelizerEntity plugin objects are implemented.

Code

public function get_view_mode($view_mode, $bundle);