public function PanelizerEntityDefault::admin_bundle_display_path in Panelizer 7.3
Obtain the system path to an entity bundle's display settings page for a specific view mode.
Parameters
string $bundle:
string $view_mode:
Return value
string The system path of the display settings page for this bundle/view mode combination.
Overrides PanelizerEntityInterface::admin_bundle_display_path
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 859 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function admin_bundle_display_path($bundle, $view_mode) {
$path = $this->entity_admin_root;
$pos = strpos($path, '%');
if ($pos !== FALSE) {
$path = substr($path, 0, $pos) . $bundle;
}
$path .= '/display';
if ($view_mode != 'default') {
$path .= '/' . $view_mode;
}
return $path;
}