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

SelectionDisplayConfig::getPlugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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