function AbstractOperation::generateContents

Same name in other branches
  1. 8.9.x composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::generateContents()
  2. 10 composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::generateContents()
  3. 11.x composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::generateContents()

Load the scaffold contents or otherwise generate what is needed.

Return value

string The contents of the scaffold file.

1 call to AbstractOperation::generateContents()
AbstractOperation::contents in composer/Plugin/Scaffold/Operations/AbstractOperation.php
Returns the exact data that will be written to the scaffold files.
3 methods override AbstractOperation::generateContents()
AppendOp::generateContents in composer/Plugin/Scaffold/Operations/AppendOp.php
Load the scaffold contents or otherwise generate what is needed.
ReplaceOp::generateContents in composer/Plugin/Scaffold/Operations/ReplaceOp.php
Load the scaffold contents or otherwise generate what is needed.
SkipOp::generateContents in composer/Plugin/Scaffold/Operations/SkipOp.php
Load the scaffold contents or otherwise generate what is needed.

File

composer/Plugin/Scaffold/Operations/AbstractOperation.php, line 37

Class

AbstractOperation
Provides default behaviors for operations.

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

protected abstract function generateContents();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.