public function Package::getFullName in Features 8.3
Same name and namespace in other branches
- 8.4 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\featuresCode
public function getFullName() {
if (empty($this->bundle) || $this
->inBundle($this->machineName, $this->bundle)) {
return $this->machineName;
}
else {
return $this->bundle . '_' . $this->machineName;
}
}