public static function ContextBreadcrumbBuilder::isToken in Context Breadcrumb 8
Validate string is token.
Parameters
string $str: The string to validate token.
Return value
bool Validate result.
1 call to ContextBreadcrumbBuilder::isToken()
- Breadcrumb::validateConfigurationForm in src/
Plugin/ ContextReaction/ Breadcrumb.php
File
- src/
Breadcrumb/ ContextBreadcrumbBuilder.php, line 130
Class
- ContextBreadcrumbBuilder
- Class ConextBreadcrumbBuilder.
Namespace
Drupal\context_breadcrumb\BreadcrumbCode
public static function isToken($str) {
return strpos($str, '[') !== FALSE || strpos($str, '{{') !== FALSE;
}