public static function Ds::isDisabled in Display Suite 8.4
Same name and namespace in other branches
- 8.2 src/Ds.php \Drupal\ds\Ds::isDisabled()
- 8.3 src/Ds.php \Drupal\ds\Ds::isDisabled()
Checks if we can go on with Display Suite.
In some edge cases, a view might be inserted into the view of an entity, in which the same entity is available as well. This is simply not possible and will lead to infinite loops, so you can temporarily disable DS completely by setting this variable, either from code or visit the UI through admin/structure/ds/emergency.
1 call to Ds::isDisabled()
- ds_entity_view_alter in ./
ds.module - Implements hook_entity_view_alter().
File
- src/
Ds.php, line 178
Class
- Ds
- Helper class that holds all the main Display Suite helper functions.
Namespace
Drupal\dsCode
public static function isDisabled() {
return \Drupal::state()
->get('ds.disabled', FALSE);
}