X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fdocs%2Fplugins%2FSetting.md;fp=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fdocs%2Fplugins%2FSetting.md;h=803199646d8ae29272f0e34b63820d8f0b928970;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=d0200c6f17fcc25256df7788e0aa7231dedb95da;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/themes/contrib/bootstrap/docs/plugins/Setting.md b/web/themes/contrib/bootstrap/docs/plugins/Setting.md index d0200c6f1..803199646 100644 --- a/web/themes/contrib/bootstrap/docs/plugins/Setting.md +++ b/web/themes/contrib/bootstrap/docs/plugins/Setting.md @@ -1,4 +1,4 @@ - + # @BootstrapSetting @@ -17,16 +17,15 @@ to change in the Theme Settings interface altering the default of Replace all of the following instances of `THEMENAME` with the actual machine name of your sub-theme. -Create a file at `./THEMENAME/src/Plugin/Setting/THEMENAME/Accessibility/SkipLink.php` +Create a file at +`./THEMENAME/src/Plugin/Setting/THEMENAME/Accessibility/SkipLink.php` with the following contents: ```php Read more about skip links.)", - arguments = { ":link" = "http://drupal.org/node/467976" }), + * arguments = { ":link" = "https://www.drupal.org/node/467976" }), * groups = { * "THEMENAME" = "THEMETITLE", * "accessibility" = @Translation("Accessibility"), @@ -47,6 +46,7 @@ use Drupal\Core\Annotation\Translation; * ) */ class SkipLink extends SettingBase {} +?> ``` Helpfully Bootstrap adds a global `theme` variable added to every template @@ -56,7 +56,8 @@ This variable can now simply be called in the `html.html.twig` file with the following contents: ```twig - ``` @@ -78,7 +79,8 @@ 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 `@BootstrapSetting` plugin! +Voilà! After this, you should have a fully functional `@BootstrapSetting` +plugin! ## Public Methods {#methods}