You are here

public function AutoEntityLabelManager::hasAutoLabel in Automatic Entity Label 8.2

Same name and namespace in other branches
  1. 8.3 src/AutoEntityLabelManager.php \Drupal\auto_entitylabel\AutoEntityLabelManager::hasAutoLabel()
  2. 8 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 161

Class

AutoEntityLabelManager
Class for Auto Entity Label Manager.

Namespace

Drupal\auto_entitylabel

Code

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