public static function ConfigHelper::isBundled in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
- 8.2 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
- 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
- 8.4 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
Checks if a config entity is bundled with Lightning.
Parameters
\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The config entity.
Return value
bool Whether the config entity is marked as being bundled with Lightning.
File
- src/
ConfigHelper.php, line 183
Class
- ConfigHelper
- A facade to assist with manipulating default config.
Namespace
Drupal\lightning_coreCode
public static function isBundled(ConfigEntityInterface $entity) {
return (bool) $entity
->getThirdPartySetting('lightning', 'bundled', FALSE);
}