You are here

protected function AutoEntityLabelManager::getConfig in Automatic Entity Label 8.3

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

Returns automatic label configuration of the content entity bundle.

Parameters

string $value: The configuration value to get.

Return value

mixed The data that was requested.

6 calls to AutoEntityLabelManager::getConfig()
AutoEntityLabelManager::generateLabel in src/AutoEntityLabelManager.php
Generates the label according to the settings.
AutoEntityLabelManager::getPattern in src/AutoEntityLabelManager.php
Returns pattern for the label.
AutoEntityLabelManager::getStatus in src/AutoEntityLabelManager.php
Returns status of automatic entity label.
AutoEntityLabelManager::hasAutoLabel in src/AutoEntityLabelManager.php
Determines if the entity bundle has auto entity label enabled.
AutoEntityLabelManager::hasOptionalAutoLabel in src/AutoEntityLabelManager.php
Determines if the entity bundle has an optional automatic label.

... See full list

File

src/AutoEntityLabelManager.php, line 334

Class

AutoEntityLabelManager
Class for Auto Entity Label Manager.

Namespace

Drupal\auto_entitylabel

Code

protected function getConfig($value) {
  if (!isset($this->config)) {
    $this->config = $this->configFactory
      ->get('auto_entitylabel.settings.' . $this->entityType . '.' . $this->entityBundle);
  }
  return $this->config
    ->get($value);
}