public function PanelizerEntityInterface::get_substitute in Panelizer 7.3
Identifies a substitute view mode for a given bundle.
Parameters
string $view_mode: The original view mode to be checked.
string $bundle: The entity bundle being checked.
Return value
string The view mode that will be used.
1 method overrides PanelizerEntityInterface::get_substitute()
- PanelizerEntityDefault::get_substitute in plugins/
entity/ PanelizerEntityDefault.class.php - Identifies a substitute view mode for a given bundle.
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 193 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityInterface
- Interface to describe how PanelizerEntity plugin objects are implemented.
Code
public function get_substitute($view_mode, $bundle);