You are here

public function AutoEntityLabelManager::hasAutoLabel in Automatic Entity Label 8

Same name and namespace in other branches
  1. 8.3 src/AutoEntityLabelManager.php \Drupal\auto_entitylabel\AutoEntityLabelManager::hasAutoLabel()
  2. 8.2 src/AutoEntityLabelManager.php \Drupal\auto_entitylabel\AutoEntityLabelManager::hasAutoLabel()

Determines if the entity bundle has auto entity label enabled.

Return value

bool True if the entity bundle has an automatic label.

Overrides AutoEntityLabelManagerInterface::hasAutoLabel

1 call to AutoEntityLabelManager::hasAutoLabel()
AutoEntityLabelManager::autoLabelNeeded in src/AutoEntityLabelManager.php
Returns whether the automatic label has to be set.

File

src/AutoEntityLabelManager.php, line 157

Class

AutoEntityLabelManager
AutoEntityLabelManager class.

Namespace

Drupal\auto_entitylabel

Code

public function hasAutoLabel() {
  return $this
    ->getConfig('status') == self::ENABLED;
}