You are here

public static function Utility::suggestion in Menu Item Extras 8.2

Suggestion builder, based on recieved args.

Parameters

string $str1: Argument for string building.

string $str2: Add arguments as more as you need.

Return value

string Prepared suggestion string.

2 calls to Utility::suggestion()
UtilityTest::testSanitizedSuggestion in tests/src/Unit/UtilityTest.php
Check sanitizing of suggestions.
UtilityTest::testSuggestion in tests/src/Unit/UtilityTest.php
Test suggestion utility.

File

src/Utility/Utility.php, line 64

Class

Utility
Utility functions specific to menu_item_extras.

Namespace

Drupal\menu_item_extras\Utility

Code

public static function suggestion($str1, $str2 = '') {
  return self::limitUnderscores(implode('__', func_get_args()));
}