You are here

protected function ConfigActionsId::getConfigItem in Config Actions 8

Fetch the configuration item

Return value

\Drupal\Core\Config\Config|\Drupal\Core\Config\Config

2 calls to ConfigActionsId::getConfigItem()
ConfigActionsId::doLoad in src/Plugin/ConfigActionsSource/ConfigActionsId.php
Load data from the source.
ConfigActionsId::doSave in src/Plugin/ConfigActionsSource/ConfigActionsId.php
Save data to the source.

File

src/Plugin/ConfigActionsSource/ConfigActionsId.php, line 134

Class

ConfigActionsId
Plugin for config id from the active store.

Namespace

Drupal\config_actions\Plugin\ConfigActionsSource

Code

protected function getConfigItem() {
  if (!isset($this->configItem)) {
    $this->configItem = $this->configFactory
      ->getEditable($this->sourceId);
  }
  return $this->configItem;
}