Same name in other branches
  1. 4.x src/Entity/QuickTabsInstance.php \Drupal\quicktabs\Entity\QuickTabsInstance::getQuickTabsInstance()

Loads a quicktabs_instance from configuration and returns it.

Parameters

string $id: The qti ID to load.

Return value

\Drupal\quicktabs\Entity\QuickTabsInstance The loaded entity.

File

src/Entity/QuickTabsInstance.php, line 177

Class

QuickTabsInstance
Defines the QuickTabsInstance entity.

Namespace

Drupal\quicktabs\Entity

Code

public static function getQuickTabsInstance($id) {
    $qt = \Drupal::service('entity_type.manager')->getStorage('quicktabs_instance')
        ->load($id);
    return $qt;
}