You are here

public function FeaturesAssignerInterface::createBundleFromDefault in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/FeaturesAssignerInterface.php \Drupal\features\FeaturesAssignerInterface::createBundleFromDefault()

Creates a new bundle by duplicating the default bundle and customizing.

Parameters

string $name: (optional) Human readable name of the bundle.

string $machine_name: Machine name.

string $description: (optional) Description of the bundle.

bool $is_profile: (optional) TRUE if a profile is used with this bundle.

string $profile_name: (optional) The machine name of the profile.

Return value

\Drupal\features\FeaturesBundleInterface A features bundle object.

1 method overrides FeaturesAssignerInterface::createBundleFromDefault()
FeaturesAssigner::createBundleFromDefault in src/FeaturesAssigner.php
Creates a new bundle by duplicating the default bundle and customizing.

File

src/FeaturesAssignerInterface.php, line 175

Class

FeaturesAssignerInterface
Common interface for features assignment services.

Namespace

Drupal\features

Code

public function createBundleFromDefault($name, $machine_name = '', $description = '', $is_profile = FALSE, $profile_name = NULL);