function public function ThemeSuggestions::addEntitySuggestions

8 ThemeSuggestions.php public ThemeSuggestions::addEntitySuggestions(array &$suggestions, Variables $variables, $entity_type = 'entity', $prefix = '')

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

Class

ThemeSuggestions
Implements hook_theme_suggestions_alter().

Namespace

Drupal\bootstrap\Plugin\Alter

Source src/Plugin/Alter/ThemeSuggestions.php (line 344)

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