class TaxonomyCrudHooks

Hook implementations for taxonomy_crud.

Hierarchy

Expanded class hierarchy of TaxonomyCrudHooks

File

core/modules/taxonomy/tests/modules/taxonomy_crud/src/Hook/TaxonomyCrudHooks.php, line 13

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary
TaxonomyCrudHooks::taxonomyVocabularyPresave public function 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.