Skip to content
Snippets Groups Projects
Unverified Commit fbc1091b authored by Divyesh Vora's avatar Divyesh Vora
Browse files

Issue #3362047 by divyesh19: D10 compatibility added.

parent 9faec6ed
No related branches found
No related tags found
No related merge requests found
name: 'Layout Builder Custom Block Language'
description: 'Allows editors to manage Custom Block component access according to language'
package: 'Layout Builder'
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10
type: module
dependencies:
......
......@@ -53,6 +53,7 @@ function layout_builder_block_language_uninstall() {
// Only track the entity type if overrides are enabled.
foreach ($lb_entity_types as $entity_type_id) {
$entity_ids = \Drupal::entityQuery($entity_type_id)
->accessCheck(FALSE)
->exists(OverridesSectionStorage::FIELD_NAME)
->execute();
......@@ -65,6 +66,7 @@ function layout_builder_block_language_uninstall() {
if ($entity instanceof FieldableEntityInterface && $entity->getEntityType()->isRevisionable()) {
// Load all revision IDs for entity.
$revision_ids = $entity_storage->getQuery()
->accessCheck(FALSE)
->allRevisions()
->condition($entity->getEntityType()->getKey('id'), $entity->id())
->execute();
......
......@@ -65,6 +65,13 @@ class ManageComponentLanguageForm extends FormBase {
*/
protected $condition;
/**
* The language manager.
*
* @var \Drupal\Core\Language\LanguageManagerInterface
*/
protected $languageManager;
/**
* Constructs a new ManageComponentPermissionForm.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment