diff --git a/dfp.tokens.inc b/dfp.tokens.inc index abcbaac..032df72 100644 --- a/dfp.tokens.inc +++ b/dfp.tokens.inc @@ -25,10 +25,6 @@ function dfp_token_info() { 'name' => t("Network ID"), 'description' => t("The unique ID provided by Google."), ]; - $tag['ad_categories'] = [ - 'name' => t("DFP Ad Categories"), - 'description' => t("The DFP Ad Categories or uncategorized taxonomy terms attached to the entities currently being displayed to the user."), - ]; return [ 'types' => ['dfp_tag' => $type], @@ -56,12 +52,6 @@ function dfp_tokens($type, $tokens, array $data, array $options, BubbleableMetad $replacements[$original] = $config->get('network_id'); $bubbleable_metadata->addCacheableDependency($config); break; - - case 'ad_categories': - // @todo What to do here? - $term_names = &drupal_static('dfp_entity_targeting_terms', []); - $replacements[$original] = implode(',', $term_names); - break; } } } diff --git a/src/Tests/DfpTestBase.php b/src/Tests/DfpTestBase.php index f6169a6..c862d90 100644 --- a/src/Tests/DfpTestBase.php +++ b/src/Tests/DfpTestBase.php @@ -41,7 +41,6 @@ abstract class DfpTestBase extends WebTestBase { // Create an admin user with all the permissions needed to run tests. $this->adminUser = $this->drupalCreateUser([ 'administer DFP', - 'administer taxonomy', 'access administration pages', 'administer blocks', 'bypass node access',