public static function EckEntityBundle::load in Entity Construction Kit (ECK) 8
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
1 call to EckEntityBundle::load()
- EckContentController::addContentPageTitle in src/
Controller/ EckContentController.php - Title callback for add page.
File
- src/
Entity/ EckEntityBundle.php, line 141
Class
- EckEntityBundle
- Defines the ECK entity bundle configuration entity.
Namespace
Drupal\eck\EntityCode
public static function load($id) {
$entities = self::loadMultiple([
$id,
]);
return reset($entities);
}