You are here

public static function MarkdownConfig::load in Markdown 8.2

Creates a new instance using provided data or loading existing config data.

Parameters

string $name: The config name where the data is stored.

array $data: Optional. Initial data to use.

\Symfony\Component\DependencyInjection\ContainerInterface $container: Optional. The service container this instance should use.

Return value

static

File

src/Config/MarkdownConfig.php, line 69

Class

MarkdownConfig
Markdown Config.

Namespace

Drupal\markdown\Config

Code

public static function load($name, array $data = NULL, ContainerInterface $container = NULL) {
  if (!isset($data)) {
    $data = \Drupal::config($name)
      ->getRawData();
  }
  return static::create($container, $name, $data);
}