You are here

public function PanelizerEntityDefault::get_enabled_view_modes in Panelizer 7.3

Identify the view modes that are enabled for use with Panelizer.

Parameters

string $bundle: The entity bundle to identify. Defaults to '0', a placeholder for all bundles on this entity.

Return value

array A list of view modes that are panelized.

Overrides PanelizerEntityInterface::get_enabled_view_modes

File

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

Class

PanelizerEntityDefault
Base class for the Panelizer Entity plugin.

Code

public function get_enabled_view_modes($bundle) {
  $enabled = array();
  $available = $this
    ->get_available_view_modes($bundle);
}