function SectionStorageManager::notSupported
Determines whether a view mode is not supported by any storage.
Parameters
string $entity_type_id: The entity type id.
string $bundle: The bundle.
string $view_mode: The view mode.
Return value
bool TRUE if the view mode is not supported, otherwise FALSE.
Overrides SupportAwareSectionStorageManagerInterface::notSupported
File
-
core/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageManager.php, line 114
Class
- SectionStorageManager
- Provides the Section Storage type plugin manager.
Namespace
Drupal\layout_builder\SectionStorageCode
public function notSupported(string $entity_type_id, string $bundle, string $view_mode) : bool {
$storage_types = array_keys($this->getDefinitions());
foreach ($storage_types as $storage_type) {
$storage = $this->loadEmpty($storage_type);
if (!$storage instanceof SupportAwareSectionStorageInterface || $storage->isSupported($entity_type_id, $bundle, $view_mode)) {
return FALSE;
}
}
// No plugins support this view mode.
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.