Tag Module
The tag module comes with the following hooks. You can hook into those using the usual listener logic.
Please view the hook section in the Core module.
The UserIsUpdating
has one more method:
getTag()
: Will return the tag being updatedTo keep the example simple we're going to use an inline listener using a closure instead of a full class.
Lets say we want to uppercase our tag:
Event::listen(TagIsCreating::class, function (TagIsCreating $event) {
$event->setAttributes(['en' => ['name' => ucfirst($event->getAttribute('en.name'))]);
});