Completed
Pull Request — 3.2 (#289)
by
unknown
10:16
created

AfterTermCreate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
1
<?php
2
3
namespace Drupal\DrupalExtension\Hook\Call;
4
5
use Drupal\DrupalExtension\Hook\Scope\TermScope;
6
7
8
/**
9
 * AfterTermCreate hook class.
10
 */
11
class AfterTermCreate extends EntityHook {
12
13
  /**
14
   * Initializes hook.
15
   */
16
  public function __construct($filterString, $callable, $description = null) {
17
    parent::__construct(TermScope::AFTER, $filterString, $callable, $description);
18
  }
19
20
  /**
21
   * {@inheritdoc}
22
   */
23
  public function getName() {
24
    return 'AfterTermCreate';
25
  }
26
}
27