Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
10.97 KB

This works, but only in the strictest definition. It needs some work.

DamienMcKenna’s picture

This adds the --base_class, --image and --multiple options, and improves some of the other options by adding their defaults.

DamienMcKenna’s picture

Status: Needs review » Needs work

It's now failing with the following:

Fatal error: Call to a member function getPath() on null in phar:///Users/myaccount/.composer/vendor/drupal/console/bin/console/src/Helper/SiteHelper.php on line 178

DamienMcKenna’s picture

No more errors, because I forgot an argument to the generator function call.

DamienMcKenna’s picture

One remaining question - is there a better way to get a boolean from the user than doing this?

Whether this meta tag will allow multiple values:
  [0] FALSE
  [1] TRUE
 > 
DamienMcKenna’s picture

This fixes the tag generator so it includes the 'image' and 'multiple' options.

Status: Needs review » Needs work

The last submitted patch, 7: metatag-n2663650-7.patch, failed testing.

The last submitted patch, 7: metatag-n2663650-7.patch, failed testing.

DamienMcKenna’s picture

Trying that again.

Status: Needs review » Needs work

The last submitted patch, 10: metatag-n2663650-10.patch, failed testing.

The last submitted patch, 10: metatag-n2663650-10.patch, failed testing.

DamienMcKenna’s picture

Well that's quite silly, it's complaining about the formatting of a twig file because it's invalid PHP code. It's invalid because it's a twig file. Dangit testbot!

DamienMcKenna’s picture

  • DamienMcKenna committed 483f55a on
    Issue #2663650 by DamienMcKenna: Updated/fixed the DrupalConsole...
DamienMcKenna’s picture

Status: Needs review » Fixed

That's reasonable for now.

mr.baileys’s picture

This fixes the missing value for image and the missing base clase in the extends.

DamienMcKenna’s picture

A shorter version of the patch in #17.

DamienMcKenna’s picture

Status: Needs review » Fixed

Thanks for spotting those, mr.baileys! Committed.

mr.baileys’s picture

Apologies for the piecemeal patches, just noticed that description is not working on the tag generator, feels overkill to open a new issue for that so piggy-backing on this one.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Thanks again.

Status: Fixed » Closed (fixed)

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