March 2019
Intermediate to advanced
580 pages
15h 3m
English
We got our field working, but let's say we want to make it a bit more dynamic. At the moment it's called Product Importer and we are showing the title of the Importer entity. But let's make it configurable so that we can choose which title to show—that of the entity or that of the actual Importer plugin—in the UI.
There are a few simple steps for making the field plugin configurable. These work similarly to other Views plugin types. They are also quite similar in concept to what we did in Chapter 9, Custom Fields, when we made the entity fields configurable.
First, we need to define some default options by overriding a method:
/** * {@inheritdoc} */ protected function defineOptions() { $options = parent::defineOptions(); ...Read now
Unlock full access