public function AutoEntityLabelManager::hasOptionalAutoLabel in Automatic Entity Label 8.2
Same name and namespace in other branches
- 8.3 src/AutoEntityLabelManager.php \Drupal\auto_entitylabel\AutoEntityLabelManager::hasOptionalAutoLabel()
- 8 src/AutoEntityLabelManager.php \Drupal\auto_entitylabel\AutoEntityLabelManager::hasOptionalAutoLabel()
Determines if the entity bundle has an optional automatic label.
Optional means that if the label is empty, it will be automatically generated.
Return value
bool True if the entity bundle has an optional automatic label.
Overrides AutoEntityLabelManagerInterface::hasOptionalAutoLabel
1 call to AutoEntityLabelManager::hasOptionalAutoLabel()
- AutoEntityLabelManager::autoLabelNeeded in src/
AutoEntityLabelManager.php - Returns whether the automatic label has to be set.
File
- src/
AutoEntityLabelManager.php, line 168
Class
- AutoEntityLabelManager
- Class for Auto Entity Label Manager.
Namespace
Drupal\auto_entitylabelCode
public function hasOptionalAutoLabel() {
return $this
->getConfig('status') == self::OPTIONAL;
}