You are here

class EntityUpdateHelper in Entity Update 8

Same name and namespace in other branches
  1. 2.0.x src/EntityUpdateHelper.php \Drupal\entity_update\EntityUpdateHelper

Entity Update Helper functions.

Hierarchy

Expanded class hierarchy of EntityUpdateHelper

1 file declares its use of EntityUpdateHelper
Settings.php in src/Form/Settings.php

File

src/EntityUpdateHelper.php, line 8

Namespace

Drupal\entity_update
View source
class EntityUpdateHelper {

  /**
   * Get Configuration Name.
   */
  public static function getConfigName() {
    return 'entity_update.settings';
  }

  /**
   * Get Configuration Object.
   *
   * @param bool $editable
   *   Is editable.
   *
   * @return \Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig
   *   Configuration object.
   */
  public static function getConfig($editable = FALSE) {
    if ($editable) {
      $config = \Drupal::configFactory()
        ->getEditable(static::getConfigName());
    }
    else {
      $config = \Drupal::config(static::getConfigName());
    }
    return $config;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityUpdateHelper::getConfig public static function Get Configuration Object.
EntityUpdateHelper::getConfigName public static function Get Configuration Name.