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

Breadcrumb

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

function ScaffoldOptions::create

Creates a scaffold options object.

Parameters

array $extras: The contents of the 'extras' section.

Return value

self The scaffold options object representing the provided scaffold options

1 call to ScaffoldOptions::create()
ManageOptions::packageOptions in composer/Plugin/Scaffold/ManageOptions.php
Gets the scaffold options for the stipulated project.

File

composer/Plugin/Scaffold/ScaffoldOptions.php, line 66

Class

ScaffoldOptions
Per-project options from the 'extras' section of the composer.json file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public static function create(array $extras) {
    $options = static::hasOptions($extras) ? $extras['drupal-scaffold'] : [];
    return new self($options);
}
RSS feed
Powered by Drupal