Completed
Push — 8.1.x ( fb062c...e20c53 )
by Antonio
06:58
created

RawDrupalContext::loadNodeByName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 18
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0
rs 9.4285
cc 2
eloc 12
nc 2
nop 1
1
<?php
2
3
namespace NuvoleWeb\Drupal\DrupalExtension\Context;
4
5
use Drupal\DrupalExtension\Context\RawDrupalContext as OriginalRawDrupalContext;
6
7
/**
8
 * Class RawDrupalContext.
9
 *
10
 * @package NuvoleWeb\Drupal\DrupalExtension\Context
11
 */
12
class RawDrupalContext extends OriginalRawDrupalContext {
13
14
  /**
15
   * Get current Drupal core.
16
   *
17
   * @return \NuvoleWeb\Drupal\Driver\Cores\CoreInterface|\Drupal\Driver\Cores\CoreInterface
18
   *    Drupal core object instance.
19
   */
20
  public function getCore() {
21
    return $this->getDriver()->getCore();
22
  }
23
24
}
25