public static function LayoutBuilderIdsServiceInterface::layoutBuilderIdsCheckIds in Layout builder ids 2.0.x
Function to check 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::layoutBuilderIdsCheckIds()
- LayoutBuilderIdsService::layoutBuilderIdsCheckIds in src/
Service/ LayoutBuilderIdsService.php - Function to check for duplicate ids.
File
- src/
Service/ LayoutBuilderIdsServiceInterface.php, line 27
Class
- LayoutBuilderIdsServiceInterface
- Interface that is collection of common functions used in layout builder ids.
Namespace
Drupal\layout_builder_ids\ServiceCode
public static function layoutBuilderIdsCheckIds(string $layout_builder_id, FormStateInterface $form_state, string $type) : bool;