public static function GcImportTestBase::getMetatag in GatherContent 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/GcImportTestBase.php \Drupal\Tests\gathercontent\Kernel\GcImportTestBase::getMetatag()
Get singleton MetatagQuery object.
1 call to GcImportTestBase::getMetatag()
- GcImportTestBase::getProcessor in tests/
src/ Kernel/ GcImportTestBase.php - Get singleton ContentProcessor injected with mock object.
File
- tests/
src/ Kernel/ GcImportTestBase.php, line 78
Class
- GcImportTestBase
- Base class for import kernel tests.
Namespace
Drupal\Tests\gathercontent\KernelCode
public static function getMetatag() {
static $metatag = NULL;
if ($metatag === NULL) {
$metatag = new MetatagQuery(\Drupal::service('entity_field.manager'));
}
return $metatag;
}