public function SchemaMetatagTagsTestBase::getPropertyTypes in Schema.org Metatag 8.2
Find all of the property types which will be tested.
1 call to SchemaMetatagTagsTestBase::getPropertyTypes()
- SchemaMetatagTagsTestBase::setUp in tests/
src/ Functional/ SchemaMetatagTagsTestBase.php
File
- tests/
src/ Functional/ SchemaMetatagTagsTestBase.php, line 75
Class
- SchemaMetatagTagsTestBase
- Base class to test all of the meta tags that are in a specific module.
Namespace
Drupal\Tests\schema_metatag\FunctionalCode
public function getPropertyTypes() {
$property_types = [];
$definitions = $this
->metatagTagManager()
->getDefinitions();
foreach ($definitions as $tag_name => $definition) {
if ($definition['group'] == $this->groupName) {
$property_types[$tag_name] = $definition['property_type'];
}
}
return $property_types;
}