You are here

public function ConfigurableContentLoader::getOption in YAML Content 8.2

Get the value from a configured option.

Parameters

string $option: The name of the option value to retrieve.

Return value

mixed|null The value of the specified option or NULL if the option is unset.

File

src/ContentLoader/ConfigurableContentLoader.php, line 62

Class

ConfigurableContentLoader
A ContentLoader implementation supporting configuration options.

Namespace

Drupal\yaml_content\ContentLoader

Code

public function getOption($option) {
  $value = NULL;
  if (isset($this->options[$option])) {
    $value = $this->options[$option];
  }
  return $value;
}