You are here

public function ThemeSuggestions::addEntitySuggestions in Express 8

Adds "bundle" and "view mode" suggestions for an entity.

Parameters

array $suggestions: The suggestions array, this is ignored.

\Drupal\bootstrap\Utility\Variables $variables: The variables object, this is ignored.

string $entity_type: Optional. A specific type of entity to look for.

string $prefix: Optional. A prefix (like "entity") to use. It will automatically be appended with the "__" separator.

Deprecated

Since 8.x-3.2. Will be removed in a future release.

See also

\Drupal\bootstrap\Plugin\Alter\ThemeSuggestions::addSuggestionsForEntity

File

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

Class

ThemeSuggestions
Implements hook_theme_suggestions_alter().

Namespace

Drupal\bootstrap\Plugin\Alter

Code

public function addEntitySuggestions(array &$suggestions, Variables $variables, $entity_type = 'entity', $prefix = '') {
  Bootstrap::deprecated();
  $this
    ->addSuggestionsForEntity($entity_type, $prefix);
}