Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractOperation.php

function 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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal