Skip to content

Conversation

Lainow
Copy link
Contributor

@Lainow Lainow commented Sep 25, 2025

No description provided.

@Lainow Lainow self-assigned this Sep 25, 2025
@Lainow
Copy link
Contributor Author

Lainow commented Sep 25, 2025

Waiting #1

@Lainow Lainow requested review from Rom1-B and stonebuzz October 6, 2025 08:29
@Lainow Lainow requested a review from Rom1-B October 6, 2025 14:37
src/Config.php Outdated
/**
* Get effective configuration for current entity, considering parent entity inheritance
*/
public static function getEffectiveConfig(): self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 3 similar functions: getCurrentConfig() (used only in tests), getEffectiveConfig(), and getEffectiveConfigForEntity(). One should be enough.

function getConfig(?int $entity_id = null): self
{
    if ($entity_id === null) {
        $entity_id = Session::getActiveEntity();
    }

src/Config.php Outdated
/**
* Get effective configuration for current entity, considering parent entity inheritance
*/
public static function getEffectiveConfig(): self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do as the core does with: Entity::getUsedConfig()
Where it is not the entire entity that inherits from its parent, but each parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants