Completed
Pull Request — 8.x-1.x (#126)
by Janez
03:15
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 0
Metric Value
c 1
b 0
f 0
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\Core\Form\FormBase;
11
use Drupal\Core\Form\FormStateInterface;
12
use Drupal\entity_browser\EntityBrowserInterface;
13
14
class SelectionDisplayConfig extends PluginConfigFormBase {
15
16
  /**
17
   * {@inheritdoc}
18
   */
19
  public function getFormId() {
20
    return 'entity_browser_selection_display_config_form';
21
  }
22
23
  /**
24
   * {@inheritdoc}
25
   */
26
  public function getPlugin(EntityBrowserInterface $entity_browser) {
27
    return $entity_browser->getSelectionDisplay();
28
  }
29
30
}
31