public static function Bootstrap::autoloadFixInclude in Express 8
Returns the autoload fix include path.
This method assists class based callbacks that normally do not work.
If you notice that your class based callback is never invoked, you may try using this helper method as an "include" or "file" for your callback, if the callback metadata supports such an option.
Depending on when or where a callback is invoked during a request, such as an ajax or batch request, the theme handler may not yet be fully initialized.
Typically there is little that can be done about this "issue" from core. It must balance the appropriate level that should be bootstrapped along with common functionality. Cross-request class based callbacks are not common in themes.
When this file is included, it will attempt to jump start this process.
Please keep in mind, that it is merely an attempt and does not guarantee that it will actually work. If it does not appear to work, do not use it.
Return value
string The autoload fix include path, relative to Drupal root.
See also
\Drupal\Core\Extension\ThemeHandler::listInfo
\Drupal\Core\Extension\ThemeHandler::systemThemeList
system_list
1 call to Bootstrap::autoloadFixInclude()
- Schemas::updateTheme in themes/
contrib/ bootstrap/ src/ Plugin/ Setting/ Schemas.php - Callback for updating a theme.
File
- themes/
contrib/ bootstrap/ src/ Bootstrap.php, line 290 - Contains \Drupal\bootstrap\Bootstrap.
Class
- Bootstrap
- The primary class for the Drupal Bootstrap base theme.
Namespace
Drupal\bootstrapCode
public static function autoloadFixInclude() {
return static::getTheme('bootstrap')
->getPath() . '/autoload-fix.php';
}