Same name in other branches
- 4.x src/Plugin/Derivative/QuickTabsBlock.php \Drupal\quicktabs\Plugin\Derivative\QuickTabsBlock::getDerivativeDefinitions()
Fichier
-
src/
Plugin/ Derivative/ QuickTabsBlock.php, line 17
Classe
- QuickTabsBlock
- Provides block plugin definitions for quicktabs blocks.
Namespace
Drupal\quicktabs\Plugin\DerivativeCode
public function getDerivativeDefinitions($base_plugin_definition) {
foreach (\Drupal::entityTypeManager()->getStorage('quicktabs_instance')
->loadMultiple() as $machine_name => $entity) {
$this->derivatives[$machine_name] = $base_plugin_definition;
$this->derivatives[$machine_name]['admin_label'] = 'QuickTabs - ' . $entity->label();
}
return parent::getDerivativeDefinitions($base_plugin_definition);
}