public static function GridStackVariant::load in GridStack 8.2
Loads an entity.
Parameters
mixed $id: The id of the entity to load.
Return value
static|null The entity object or NULL if there is no entity with the given ID.
Overrides EntityBase::load
10 calls to GridStackVariant::load()
- Builder::getVariantLinks in src/
Plugin/ gridstack/ stylizer/ Builder.php - Returns the AJAX CRUD links for layout variants.
- Form::globalForm in src/
Plugin/ gridstack/ stylizer/ Form.php - GridStackVariantForm::form in modules/
gridstack_ui/ src/ Form/ GridStackVariantForm.php - Gets the actual form array to be built.
- GridStackVariantFormController::add in modules/
gridstack_ui/ src/ Controller/ GridStackVariantFormController.php - Adds a gridstack variant.
- GridStackVariantFormController::duplicate in modules/
gridstack_ui/ src/ Controller/ GridStackVariantFormController.php - Duplicates a gridstack variant.
File
- src/
Entity/ GridStackVariant.php, line 46
Class
- GridStackVariant
- Defines the GridStack variant configuration entity.
Namespace
Drupal\gridstack\EntityCode
public static function load($id = '') {
return $id == 'default' ? GridStack::load('default') : parent::load($id);
}