public function AutoEntityLabelManager::getPattern in Automatic Entity Label 8.2
Same name and namespace in other branches
- 8.3 src/AutoEntityLabelManager.php \Drupal\auto_entitylabel\AutoEntityLabelManager::getPattern()
Returns pattern for the label.
Return value
string Pattern value.
Overrides AutoEntityLabelManagerInterface::getPattern
1 call to AutoEntityLabelManager::getPattern()
- AutoEntityLabelManager::setLabel in src/
AutoEntityLabelManager.php - Sets the automatically generated entity label.
File
- src/
AutoEntityLabelManager.php, line 192
Class
- AutoEntityLabelManager
- Class for Auto Entity Label Manager.
Namespace
Drupal\auto_entitylabelCode
public function getPattern() {
$pattern = $this
->getConfig('pattern') ?: '';
$pattern = trim($pattern);
return $pattern;
}