You are here

interface LayoutBuilderIdsServiceInterface in Layout builder ids 2.0.x

Interface that is collection of common functions used in layout builder ids.

@package Drupal\layout_builder_ids\Service

Hierarchy

Expanded class hierarchy of LayoutBuilderIdsServiceInterface

All classes that implement LayoutBuilderIdsServiceInterface

File

src/Service/LayoutBuilderIdsServiceInterface.php, line 12

Namespace

Drupal\layout_builder_ids\Service
View source
interface LayoutBuilderIdsServiceInterface {

  /**
   * Function to check for duplicate ids.
   *
   * @param string $layout_builder_id
   *   A string representing the if we are looking for.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state object.
   * @param string $type
   *   A string representing the type of check, either section or block.
   *
   * @return bool
   *   A boolean value to whether or not there is a duplicate id.
   */
  public static function layoutBuilderIdsCheckIds(string $layout_builder_id, FormStateInterface $form_state, string $type) : bool;

  /**
   * Function to check the sections for duplicate ids.
   *
   * @param string $layout_builder_id
   *   A string representing the if we are looking for.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state object.
   * @param string $type
   *   A string representing the type of check, either section or block.
   *
   * @return bool
   *   A boolean value to whether or not there is a duplicate id.
   */
  public static function layoutBuilderIdsCheckSectionIds(string $layout_builder_id, FormStateInterface $form_state, string $type) : bool;

  /**
   * A function to check the blocks for a duplicate id.
   *
   * @param string $layout_builder_id
   *   A string representing the if we are looking for.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state object.
   * @param string $type
   *   A string representing the type of check, either section or block.
   *
   * @return bool
   *   A boolean value to whether or not there is a duplicate id.
   */
  public static function layoutBuilderIdsCheckBlockIds(string $layout_builder_id, FormStateInterface $form_state, string $type) : bool;

}

Members

Namesort descending Modifiers Type Description Overrides
LayoutBuilderIdsServiceInterface::layoutBuilderIdsCheckBlockIds public static function A function to check the blocks for a duplicate id. 1
LayoutBuilderIdsServiceInterface::layoutBuilderIdsCheckIds public static function Function to check for duplicate ids. 1
LayoutBuilderIdsServiceInterface::layoutBuilderIdsCheckSectionIds public static function Function to check the sections for duplicate ids. 1