You are here

public function OperationData::forceAppend in Drupal 9

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/Operations/OperationData.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationData::forceAppend()

Determines whether 'force-append' has been set.

Return value

bool Returns true if 'force-append' mode was selected.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

public function forceAppend() {
  if ($this
    ->hasDefault()) {
    return TRUE;
  }
  return !empty($this->data[self::FORCE_APPEND]);
}