function ConfigTest::isInstallable

Overrides ConfigEntityBase::isInstallable

File

core/modules/config/tests/config_test/src/Entity/ConfigTest.php, line 204

Class

ConfigTest
Defines the ConfigTest configuration entity.

Namespace

Drupal\config_test\Entity

Code

public function isInstallable() {
  return $this->id != 'is_installable' || \Drupal::state()->get('config_test.is_installable');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.