You are here

public static function LayoutBuilderIdsServiceInterface::layoutBuilderIdsCheckSectionIds in Layout builder ids 2.0.x

Function to check the sections for duplicate ids.

Parameters

string $layout_builder_id: A string representing the if we are looking for.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

string $type: A string representing the type of check, either section or block.

Return value

bool A boolean value to whether or not there is a duplicate id.

1 method overrides LayoutBuilderIdsServiceInterface::layoutBuilderIdsCheckSectionIds()
LayoutBuilderIdsService::layoutBuilderIdsCheckSectionIds in src/Service/LayoutBuilderIdsService.php
Function to check the sections for duplicate ids.

File

src/Service/LayoutBuilderIdsServiceInterface.php, line 42

Class

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

Namespace

Drupal\layout_builder_ids\Service

Code

public static function layoutBuilderIdsCheckSectionIds(string $layout_builder_id, FormStateInterface $form_state, string $type) : bool;