public function FeaturesBundle::isProfilePackage in Features 8.3
Same name and namespace in other branches
- 8.4 src/Entity/FeaturesBundle.php \Drupal\features\Entity\FeaturesBundle::isProfilePackage()
Determines if the package with $machine_name is the bundle profile.
Parameters
string $machine_name: The machine name of a package.
Return value
bool TRUE if the package with $machine_name is the bundle profile.
Overrides FeaturesBundleInterface::isProfilePackage
3 calls to FeaturesBundle::isProfilePackage()
- FeaturesBundle::getFullName in src/
Entity/ FeaturesBundle.php - Returns a full machine name prefixed with the bundle name.
- FeaturesBundle::getShortName in src/
Entity/ FeaturesBundle.php - Returns a short machine name not prefixed with the bundle name.
- FeaturesBundle::inBundle in src/
Entity/ FeaturesBundle.php - Determines if the $machine_name is prefixed by the bundle machine name.
File
- src/
Entity/ FeaturesBundle.php, line 160
Class
- FeaturesBundle
- Defines a features bundle.
Namespace
Drupal\features\EntityCode
public function isProfilePackage($machine_name) {
return $this
->isProfile() && $machine_name == $this
->getProfileName();
}