You are here

public function ConfigurationManager::newPart in Configuration Management 7.3

File

src/ConfigurationManager.php, line 165

Class

ConfigurationManager

Namespace

Configuration

Code

public function newPart(Configuration $configuration, $part, $type = NULL) {
  $configuration
    ->addPart($part);
  $this
    ->referenceConfiguration($configuration
    ->getIdentifier(), $part, $type);
}