function NavigationSectionStorage::isSupported

Same name and namespace in other branches
  1. main core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php \Drupal\navigation\Plugin\SectionStorage\NavigationSectionStorage::isSupported()

Determines if layout builder is supported by a view mode.

Parameters

string $entity_type_id: The entity type id.

string $bundle: The bundle.

string $view_mode: The view mode.

Return value

bool TRUE if it is supported, otherwise FALSE.

Overrides SupportAwareSectionStorageInterface::isSupported

File

core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php, line 207

Class

NavigationSectionStorage
Provides navigation section storage.

Namespace

Drupal\navigation\Plugin\SectionStorage

Code

public function isSupported(string $entity_type_id, string $bundle, string $view_mode) : bool {
  // Navigation section storage does not support any entity type.
  return FALSE;
}

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