Completed
Push — 3.2 ( 51a84d...abe3a3 )
by Jonathan
8s
created

EntityHook::filterMatches()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 1
1
<?php
2
3
namespace Drupal\DrupalExtension\Hook\Call;
4
5
use Behat\Testwork\Hook\Call\RuntimeFilterableHook;
6
use Behat\Testwork\Hook\Scope\HookScope;
7
8
/**
9
 * Entity hook class.
10
 */
11
abstract class EntityHook extends RuntimeFilterableHook {
12
13
  /**
14
   * {@inheritDoc}
15
   */
16
  public function filterMatches(HookScope $scope) {
17
    if (NULL === ($filterString = $this->getFilterString())) {
18
      return TRUE;
19
    }
20
  }
21
22
}
23