Examveda
Examveda

How many events does the BaseFieldType provide?

A. 1

B. 2

C. 3

D. 4

Answer: Option C

Solution(By Examveda Team)

BaseFieldType provides three events that you can latch code onto:
1. onBeforeSave() : Called right before a field is saved.
2. onAfterSave() : Called right after a field is saved, and $this->model->id is set.
3. onAfterElementSave() : Called right after an element is saved, and $this->element->id is set.

This Question Belongs to Javascript >> Parsing, Benchmarking And Logging

Join The Discussion

Related Questions on Parsing, Benchmarking and Logging