Let's get Claro added as a dependency to stop people seeing an odd result :)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ChandeepKhosa created an issue. See original summary.

ChandeepKhosa’s picture

Here's the patch

ChandeepKhosa’s picture

Status: Active » Needs review
FileSize
292 bytes

Renamed patch file & queuing this for review

saschaeggi’s picture

Status: Needs review » Postponed (maintainer needs more info)

@ChandeepKhosa does this work for you on D8.8? I'm just getting an error
Unable to install modules: module 'gin_login' is missing its dependency module claro.
But as claro is not a module but rather a theme I'm not sure if we can solve that this way.

ChandeepKhosa’s picture

Sorry I was lazy and didn't test it, no it doesn't work for me either. I tried googling but didn't find a solution on doing this.

saschaeggi’s picture

Status: Postponed (maintainer needs more info) » Postponed

I've created a core issue for this #3108003: Dependency on (core) themes (e.g. Claro)

jkswoods’s picture

Status: Postponed » Active

This doesn't necessarily have to rely on waiting for the ability to define dependency on themes. A solution for this can be to have a check in hook_requirements that occurs during the 'install' phase. After evaluating that the claro theme is not enabled, return a REQUIREMENT_ERROR.

See: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...

saschaeggi’s picture

@jkswoods can you provide a patch for this? :)

malte.koelle’s picture

Status: Active » Needs review
FileSize
735 bytes
malte.koelle’s picture

FileSize
725 bytes

I added a hook_requirements, which checks if claro is installed.
#9 had a typo. Now it looks better.

saschaeggi’s picture

This needs another round of community testing. Thanks in advance!

saschaeggi’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.