Completed
Push — 8.x-1.x ( faacfb...55150c )
by Janez
02:54
created

FieldWidgetDisplayBase::settingsForm()   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 2
1
<?php
2
3
/**
4
 * @file
5
 * Contains \Drupal\entity_browser\FieldWidgetDisplayBase.
6
 */
7
8
namespace Drupal\entity_browser;
9
10
use Drupal\Core\Entity\EntityTypeInterface;
11
use Drupal\Core\Form\FormStateInterface;
12
use Drupal\Core\Plugin\PluginBase;
13
14
/**
15
 * Base implementation for field widget display plugins.
16
 */
17
abstract class FieldWidgetDisplayBase extends PluginBase implements FieldWidgetDisplayInterface {
18
19
  /**
20
   * {@inheritdoc}
21
   */
22
  public function settingsForm(array $form, FormStateInterface $form_state) {
23
    return [];
24
  }
25
26
  /**
27
   * {@inheritdoc}
28
   */
29
  public function isApplicable(EntityTypeInterface $entity_type) {
30
    return TRUE;
31
  }
32
33
}
34