You are here

public function FeaturesBundle::getFullName in Features 8.4

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

Returns a full machine name prefixed with the bundle name.

Parameters

string $short_name: The short machine_name of a bundle.

Return value

string The full machine_name of a bundle.

Overrides FeaturesBundleInterface::getFullName

File

src/Entity/FeaturesBundle.php, line 127

Class

FeaturesBundle
Defines a features bundle.

Namespace

Drupal\features\Entity

Code

public function getFullName($short_name) {
  if ($this
    ->isDefault() || $this
    ->inBundle($short_name) || $this
    ->isProfilePackage($short_name)) {
    return $short_name;
  }
  else {
    return $this->machine_name . '_' . $short_name;
  }
}