protected function FeaturesCommands::getOption in Features 8.3
Same name and namespace in other branches
- 8.4 src/Commands/FeaturesCommands.php \Drupal\features\Commands\FeaturesCommands::getOption()
Get the value of an option.
Parameters
array $options: The options array.
string $name: The option name.
mixed $default: The default value of the option.
Return value
mixed|null The option value, defaulting to NULL.
2 calls to FeaturesCommands::getOption()
- FeaturesCommands::featuresOptions in src/
Commands/ FeaturesCommands.php - Applies global options for Features drush commands, including the bundle.
- FeaturesCommands::import in src/
Commands/ FeaturesCommands.php - Import a module config into your site.
File
- src/
Commands/ FeaturesCommands.php, line 159
Class
- FeaturesCommands
- Drush commands for Features.
Namespace
Drupal\features\CommandsCode
protected function getOption(array $options, $name, $default = NULL) {
return isset($options[$name]) ? $options[$name] : $default;
}