You are here

public function Package::getFullName in Features 8.4

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

Return the full name of the package by prefixing it with bundle as needed.

NOTE: When possible, use the Bundle::getFullName method since it can better handle cases where a bundle is a profile.

Return value

string

1 call to Package::getFullName()
Package::setDependencies in src/Package.php
Sets the dependencies of a package.

File

src/Package.php, line 200

Class

Package
Defines a value object for storing package related data.

Namespace

Drupal\features

Code

public function getFullName() {
  if (empty($this->bundle) || $this
    ->inBundle($this->machineName, $this->bundle)) {
    return $this->machineName;
  }
  else {
    return $this->bundle . '_' . $this->machineName;
  }
}