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\ContentLoaderCode
public function getOption($option) {
$value = NULL;
if (isset($this->options[$option])) {
$value = $this->options[$option];
}
return $value;
}