TaxonomyCrudHooks.php

Namespace

Drupal\taxonomy_crud\Hook

File

core/modules/taxonomy/tests/modules/taxonomy_crud/src/Hook/TaxonomyCrudHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\taxonomy_crud\Hook;

use Drupal\taxonomy\VocabularyInterface;
use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for taxonomy_crud.
 */
class TaxonomyCrudHooks {
    
    /**
     * Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
     */
    public function taxonomyVocabularyPresave(VocabularyInterface $vocabulary) {
        $vocabulary->setThirdPartySetting('taxonomy_crud', 'foo', 'bar');
    }

}

Classes

Title Deprecated Summary
TaxonomyCrudHooks Hook implementations for taxonomy_crud.

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