Completed
Pull Request — 8.x-1.x (#137)
by
unknown
16:44 queued 12s
created

EntityBrowserEditForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 1
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A actions() 0 5 1
1
<?php
2
3
/**
4
 * @file
5
 * Contains Drupal\entity_browser\Form\EntityBroserEditForm.
6
 */
7
8
namespace Drupal\entity_browser\Form;
9
10
use Drupal\Core\Form\FormStateInterface;
11
12
/**
13
 * Class EntityBrowserEditForm
14
 *
15
 * Provides the edit form for Entity Browser.
16
 *
17
 */
18
class EntityBrowserEditForm extends EntityBrowserForm {
19
20
  /**
21
   * Returns the actions provided by this form.
22
   *
23
   * @param array $form
24
   *   An associative array containing the structure of the form.
25
   * @param \Drupal\Core\Form\FormStateInterface $form_state
26
   *   An associative array containing the current state of the form.
27
   *
28
   * @return array
29
   *   An array of supported actions for the current entity form.
30
   */
31
  protected function actions(array $form, FormStateInterface $form_state) {
32
    $actions = parent::actions($form, $form_state);
33
    $actions['submit']['#value'] = $this->t('Update Entity Browser');
34
    return $actions;
35
  }
36
37
}
38