You are here

public function OperationData::mode in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/Scaffold/Operations/OperationData.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationData::mode()
  2. 10 composer/Plugin/Scaffold/Operations/OperationData.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationData::mode()

Gets operation mode

Return value

string Operation mode.

File

composer/Plugin/Scaffold/Operations/OperationData.php, line 61

Class

OperationData
Holds parameter data for operation objects during operation creation only.

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

public function mode() {
  return $this->data[self::MODE];
}