You are here

abstract protected function AbstractOperation::generateContents in Drupal 8

Same name and namespace in other branches
  1. 9 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();