final public function AbstractOperation::contents in Drupal 9
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::contents()
- 10 composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::contents()
Returns the exact data that will be written to the scaffold files.
Return value
string Data to be written to the scaffold location.
Overrides OperationInterface::contents
2 calls to AbstractOperation::contents()
- AppendOp::process in composer/
Plugin/ Scaffold/ Operations/ AppendOp.php - Process this scaffold operation.
- ReplaceOp::copyScaffold in composer/
Plugin/ Scaffold/ Operations/ ReplaceOp.php - Copies the scaffold file.
File
- composer/
Plugin/ Scaffold/ Operations/ AbstractOperation.php, line 24
Class
- AbstractOperation
- Provides default behaviors for operations.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public final function contents() {
if (!isset($this->contents)) {
$this->contents = $this
->generateContents();
}
return $this->contents;
}