You are here

public static function GcImportTestBase::getMetatag in GatherContent 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/GcImportTestBase.php \Drupal\Tests\gathercontent\Kernel\GcImportTestBase::getMetatag()

Get singleton MetatagQuery object.

File

tests/src/Kernel/GcImportTestBase.php, line 50

Class

GcImportTestBase
Base class for import kernel tests.

Namespace

Drupal\Tests\gathercontent\Kernel

Code

public static function getMetatag() {
  static $metatag = NULL;
  if ($metatag === NULL) {
    $metatag = new MetatagQuery(\Drupal::service('entity_field.manager'));
  }
  return $metatag;
}