public function BundleConfigManager::loadDisplay in Title 8.2
Load a display object.
Parameters
string $bundle: The bundle to load.
string $view_mode: The view mode to load.
Return value
object The display config object.
2 calls to BundleConfigManager::loadDisplay()
- BundleConfigManager::setTitleFieldFormatter in src/
BundleConfigManager.php - Set the field formatter for a
- BundleConfigManager::setTitleRegion in src/
BundleConfigManager.php - Set the region that a title is displayed in for a bundle and view mode.
File
- src/
BundleConfigManager.php, line 175
Class
- BundleConfigManager
- Allow management of the title module config.
Namespace
Drupal\titleCode
public function loadDisplay($bundle, $view_mode) {
return $this->entityTypeManager
->getStorage('entity_view_display')
->load('node.' . $bundle . '.' . $view_mode);
}