You are here

public function ScaffoldFileInfo::op in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::op()
  2. 9 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::op()

Gets the Scaffold operation.

Return value

\Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface Operations object that handles scaffolding (copy, make symlink, etc).

2 calls to ScaffoldFileInfo::op()
ScaffoldFileInfo::hasChanged in composer/Plugin/Scaffold/ScaffoldFileInfo.php
Returns TRUE if the target does not exist or has changed.
ScaffoldFileInfo::process in composer/Plugin/Scaffold/ScaffoldFileInfo.php
Moves a single scaffold file from source to destination.

File

composer/Plugin/Scaffold/ScaffoldFileInfo.php, line 54

Class

ScaffoldFileInfo
Data object that keeps track of one scaffold file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function op() {
  return $this->op;
}