public function CommerceAutoSkuManager::hasAutoSku in Commerce AutoSKU 8.2
Determines if the entity bundle has auto entity label enabled.
Return value
bool True if the entity bundle has an automatic label.
Overrides CommerceAutoSkuManagerInterface::hasAutoSku
1 call to CommerceAutoSkuManager::hasAutoSku()
- CommerceAutoSkuManager::autoSkuNeeded in src/
CommerceAutoSkuManager.php - Returns whether the automatic label has to be set.
File
- src/
CommerceAutoSkuManager.php, line 153 - Contains \Drupal\commerce_autosku\AutoEntityLabelManager.
Class
Namespace
Drupal\commerce_autoskuCode
public function hasAutoSku() {
return $this
->getConfig('mode') == self::ENABLED;
}