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