Same name in other branches
- 4.x src/Entity/QuickTabsInstance.php \Drupal\quicktabs\Entity\QuickTabsInstance::getQuickTabsInstance()
Loads a quicktabs_instance from configuration and returns it.
Paramètres
string $id: The qti ID to load.
Return value
\Drupal\quicktabs\Entity\QuickTabsInstance The loaded entity.
Fichier
-
src/
Entity/ QuickTabsInstance.php, line 177
Classe
- QuickTabsInstance
- Defines the QuickTabsInstance entity.
Namespace
Drupal\quicktabs\EntityCode
public static function getQuickTabsInstance($id) {
$qt = \Drupal::service('entity_type.manager')->getStorage('quicktabs_instance')
->load($id);
return $qt;
}