You are here

public static function ConfigHelper::isBundled in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
  2. 8.2 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
  3. 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::isBundled()
  4. 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_core

Code

public static function isBundled(ConfigEntityInterface $entity) {
  return (bool) $entity
    ->getThirdPartySetting('lightning', 'bundled', FALSE);
}