WidgetSelectorConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFormId() 0 3 1
A getPlugin() 0 3 1
1
<?php
2
3
namespace Drupal\entity_browser\Form;
4
5
use Drupal\entity_browser\EntityBrowserInterface;
6
7
/**
8
 * Widget selector configuration step in entity browser form wizard.
9
 */
10
class WidgetSelectorConfig extends PluginConfigFormBase {
11
12
  /**
13
   * {@inheritdoc}
14
   */
15
  public function getFormId() {
16
    return 'entity_browser_widget_selector_config_form';
17
  }
18
19
  /**
20
   * {@inheritdoc}
21
   */
22
  public function getPlugin(EntityBrowserInterface $entity_browser) {
23
    return $entity_browser->getWidgetSelector();
24
  }
25
26
}
27