protected function DfpTestBase::dfpTagToTagView in Doubleclick for Publishers (DFP) 8
Converts a DFP Tag config entity to a TagView object.
Parameters
\Drupal\dfp\Entity\TagInterface $tag: The DFP tag.
Return value
\Drupal\dfp\View\TagView The TagView object.
1 call to DfpTestBase::dfpTagToTagView()
- DisplayTagTest::testDisplayTag in tests/
src/ Functional/ DisplayTagTest.php - Tests display a DFP tag in a block.
File
- tests/
src/ Functional/ DfpTestBase.php, line 108 - Contains \Drupal\Tests\dfp\Functional\DfpTestBase.
Class
- DfpTestBase
- An abstract class to build DFP tests from.
Namespace
Drupal\Tests\dfp\FunctionalCode
protected function dfpTagToTagView(TagInterface $tag) {
return new TagView($tag, $this
->getGlobalConfig(), $this->container
->get('dfp.token'), $this->container
->get('module_handler'));
}