Completed
Pull Request — 8.x-1.x (#126)
by Janez
02:09
created

WidgetSelectorConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFormId() 0 3 1
A getPlugin() 0 3 1
1
<?php
2
3
/**
4
 * @file
5
 * Contains \Drupal\entity_browser\Form\WidgetSelectorConfig.
6
 */
7
8
namespace Drupal\entity_browser\Form;
9
10
use Drupal\Core\Form\FormBase;
11
use Drupal\Core\Form\FormStateInterface;
12
use Drupal\entity_browser\EntityBrowserInterface;
13
14
class WidgetSelectorConfig extends PluginConfigFormBase {
15
16
  /**
17
   * {@inheritdoc}
18
   */
19
  public function getFormId() {
20
    return 'entity_browser_widget_selector_config_form';
21
  }
22
23
  /**
24
   * {@inheritdoc}
25
   */
26
  public function getPlugin(EntityBrowserInterface $entity_browser) {
27
    return $entity_browser->getWidgetSelector();
28
  }
29
30
}
31