Problem/Motivation

Flag 8.x allows module developers to create their own flag and link type plugins through the use of base classes and custom annotations. Developing this is currently untested and undocumented.

Proposed resolution

Leveraging Drupal Console so Flag can provide generate commands to create Flag and Link Type stubs for module developers. This will encourage "the right way" to extend Flag (not to mention it'd be a nifty exercise for the Flag's maintainers).

Remaining tasks

Create patch.

User interface changes

None.

API changes

None.

Comments

socketwench’s picture

Status: Active » Postponed
joachim’s picture

Module Builder can already write Flag plugins: it can write any type of plugin OOTB because it analyses the plugin type code to determine how to build plugins.

socketwench’s picture

Status: Postponed » Closed (won't fix)

It's not even that complicated of a task without it, as we provide interfaces for that. I'd much rather have a create:flags and create:flaggings Drupalconsole command anyways.