You are here

protected function ThemeSuggestions::processSuggestions in Express 8

Processes the necessary theme hook suggestions.

1 call to ThemeSuggestions::processSuggestions()
ThemeSuggestions::alter in themes/contrib/bootstrap/src/Plugin/Alter/ThemeSuggestions.php
Alters data for a specific hook_TYPE_alter() implementation.

File

themes/contrib/bootstrap/src/Plugin/Alter/ThemeSuggestions.php, line 310
Contains \Drupal\bootstrap\Plugin\Alter\ThemeSuggestions.

Class

ThemeSuggestions
Implements hook_theme_suggestions_alter().

Namespace

Drupal\bootstrap\Plugin\Alter

Code

protected function processSuggestions() {

  // Add special hook suggestions for Bootstrap panels.
  if (in_array($this->originalHook, $this->bootstrapPanelTypes) && $this->element && $this->element
    ->getProperty('bootstrap_panel', TRUE)) {
    $this
      ->addSuggestion('bootstrap_panel');
  }

  // Retrieve any dynamic alter methods.
  $methods = $this
    ->getAlterMethods();
  foreach ($methods as $method) {
    $this
      ->{$method}();
  }
}