interface SupportAwareSectionStorageInterface

Interface for section storage that knows whether it supports a view mode.

Hierarchy

Expanded class hierarchy of SupportAwareSectionStorageInterface

All classes that implement SupportAwareSectionStorageInterface

1 file declares its use of SupportAwareSectionStorageInterface
SectionStorageManager.php in core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php

File

core/modules/layout_builder/src/SupportAwareSectionStorageInterface.php, line 10

Namespace

Drupal\layout_builder
View source
interface SupportAwareSectionStorageInterface extends SectionStorageInterface {
  
  /**
   * Determines if layout builder is supported by a view mode.
   *
   * @param string $entity_type_id
   *   The entity type id.
   * @param string $bundle
   *   The bundle.
   * @param string $view_mode
   *   The view mode.
   *
   * @return bool
   *   TRUE if it is supported, otherwise FALSE.
   */
  public function isSupported(string $entity_type_id, string $bundle, string $view_mode) : bool;

}

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