public function Package::setFeaturesInfo in Features 8.4
Same name and namespace in other branches
- 8.3 src/Package.php \Drupal\features\Package::setFeaturesInfo()
Parameters
array|TRUE $features_info:
Return value
$this
File
- src/
Package.php, line 478
Class
- Package
- Defines a value object for storing package related data.
Namespace
Drupal\featuresCode
public function setFeaturesInfo($features_info) {
if (isset($features_info['bundle'])) {
$this
->setBundle($features_info['bundle']);
}
$this
->setRequired(isset($features_info['required']) ? $features_info['required'] : FALSE);
$this
->setExcluded(isset($features_info['excluded']) ? $features_info['excluded'] : []);
return $this;
}