Completed
Push — 8.x-1.x ( 48b271...fbaab6 )
by Janez
02:46
created

SelectionDisplayConfig   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 1
Metric Value
wmc 2
c 1
b 0
f 1
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\SelectionDisplayConfig.
6
 */
7
8
namespace Drupal\entity_browser\Form;
9
10
use Drupal\entity_browser\EntityBrowserInterface;
11
12
/**
13
 * Selection display configuration step in entity browser form wizard.
14
 */
15
class SelectionDisplayConfig extends PluginConfigFormBase {
16
17
  /**
18
   * {@inheritdoc}
19
   */
20
  public function getFormId() {
21
    return 'entity_browser_selection_display_config_form';
22
  }
23
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function getPlugin(EntityBrowserInterface $entity_browser) {
28
    return $entity_browser->getSelectionDisplay();
29
  }
30
31
}
32