public function FeaturesBundle::inBundle in Features 8.3
Same name and namespace in other branches
- 8.4 src/Entity/FeaturesBundle.php \Drupal\features\Entity\FeaturesBundle::inBundle()
Determines if the $machine_name is prefixed by the bundle machine name.
Parameters
string $machine_name: The machine name of a package.
Return value
bool TRUE if the machine name is prefixed by the bundle machine name.
Overrides FeaturesBundleInterface::inBundle
2 calls to FeaturesBundle::inBundle()
- 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.
File
- src/
Entity/ FeaturesBundle.php, line 153
Class
- FeaturesBundle
- Defines a features bundle.
Namespace
Drupal\features\EntityCode
public function inBundle($machine_name) {
return $this
->isProfilePackage($machine_name) || strpos($machine_name, $this->machine_name . '_') === 0;
}