# @BootstrapProcess - [Create a plugin](#create) - [Rebuild the cache](#rebuild) --- ## Create a plugin {#create} {.alert.alert-warning}**Note:** This plugin is _not_ a re-implementation of the D7 `hook_process_HOOK` for theme hooks in anyway. That layer was removed from the theme system in D8 and for good reason (see: [Remove the process layer](https://www.drupal.org/node/1843650)). This plugin is about automatically adding a `#process` callback for a form element `#type`. This is especially useful when dealing with core elements that have implemented their own callbacks; either to alter their output or remove entirely. We'll use `TextFormat` implemented by this base theme as an example of how to override the class entirely and remove this base theme's over-simplification for the "format tips" section. Replace all following instances of `THEMENAME` with the actual machine name of your sub-theme. Create a file at `./themes/THEMENAME/src/Plugin/Process/TextFormat.php` with the following contents: ```php ``` ## Rebuild the cache {#rebuild} Once you have saved, you must rebuild your cache for this new plugin to be discovered. This must happen anytime you make a change to the actual file name or the information inside the `@BootstrapProcess` annotation. To rebuild your cache, navigate to `admin/config/development/performance` and click the `Clear all caches` button. Or if you prefer, run `drush cr` from the command line. VoilĂ ! After this, you should have a fully functional `@BootstrapProcess` plugin!