public static function GridStackBase::loadWithFallback in GridStack 8.2
Load the optionset with a fallback.
File
- src/
Entity/ GridStackBase.php, line 147
Class
- GridStackBase
- Defines the base class for GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public static function loadWithFallback($id) {
$optionset = self::load($id);
// Ensures deleted optionset while being used doesn't screw up.
return empty($optionset) ? self::load('default') : $optionset;
}