taxonomy_crud.module

Same filename in other branches
  1. 8.9.x core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module
  2. 10 core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module
  3. 11.x core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module

Provides hook implementations for testing purposes.

File

core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module

View source
<?php


/**
 * @file
 * Provides hook implementations for testing purposes.
 */
use Drupal\taxonomy\VocabularyInterface;

/**
 * Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
 */
function taxonomy_crud_taxonomy_vocabulary_presave(VocabularyInterface $vocabulary) {
    $vocabulary->setThirdPartySetting('taxonomy_crud', 'foo', 'bar');
}

Functions

Title Deprecated Summary
taxonomy_crud_taxonomy_vocabulary_presave Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.