You are here

protected function MiconMenuWidget::getPackages in Micon 8

Same name and namespace in other branches
  1. 2.x 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\FieldWidget

Code

protected function getPackages() {
  $config = \Drupal::config('micon_menu.config');
  return $config
    ->get('packages');
}