-<!-- @file Documentation for the @BootstrapPreprocess annotated discovery plugin. -->
+<!-- @file Documentation for the @BootstrapPreprocess annotated plugin. -->
<!-- @defgroup -->
<!-- @ingroup -->
# @BootstrapPreprocess
following contents:
```php
-/**
- * @file
- * Contains \Drupal\THEMENAME\Plugin\Preprocess\Page.
- */
+<?php
namespace Drupal\THEMENAME\Plugin\Preprocess;
-use Drupal\bootstrap\Annotation\BootstrapPreprocess;
+use Drupal\bootstrap\Plugin\Preprocess\Page as BootstrapPage;
use Drupal\bootstrap\Utility\Element;
use Drupal\bootstrap\Utility\Variables;
*
* @BootstrapPreprocess("page")
*/
-class Page extends \Drupal\bootstrap\Plugin\Preprocess\Page {
-
- // It should be noted that you do not need all three methods here.
- // This is to just show you the different examples of how this plugin
- // works and how they can be tailored to your needs.
+class Page extends BootstrapPage {
+ /*
+ * It should be noted that you do not need all three methods here.
+ * This is to just show you the different examples of how this plugin
+ * works and how they can be tailored to your needs.
+ */
/**
* {@inheritdoc}
}
}
+?>
```
## Rebuild the cache {#rebuild}
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 `@BootstrapPreprocess` plugin!
+VoilĂ ! After this, you should have a fully functional `@BootstrapPreprocess`
+plugin!