protected function MiconMenuWidget::getPackages in Micon 2.x
Same name and namespace in other branches
- 8 micon_menu/src/Plugin/Field/FieldWidget/MiconMenuWidget.php \Drupal\micon_menu\Plugin\Field\FieldWidget\MiconMenuWidget::getPackages()
Get packages available to this field.
Overrides MiconLinkWidget::getPackages
File
- micon_menu/
src/ Plugin/ Field/ FieldWidget/ MiconMenuWidget.php, line 27
Class
- MiconMenuWidget
- Plugin implementation of the 'link' widget.
Namespace
Drupal\micon_menu\Plugin\Field\FieldWidgetCode
protected function getPackages() {
$config = \Drupal::config('micon_menu.config');
return $config
->get('packages');
}