You are here

protected function FeaturesCommands::getOption in Features 8.4

Same name and namespace in other branches
  1. 8.3 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\Commands

Code

protected function getOption(array $options, $name, $default = NULL) {
  return isset($options[$name]) ? $options[$name] : $default;
}