You are here

protected function AutoEntityLabelManager::getConfig in Automatic Entity Label 8.2

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

\Drupal\Core\Config\ImmutableConfig Return Config.

5 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.

File

src/AutoEntityLabelManager.php, line 295

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->entity_type . '.' . $this->entity_bundle);
  }
  return $this->config
    ->get($value);
}