Problem/Motivation

If supported, generate a Model attribute instead of an annotation.

Proposed resolution

Before

/**
 * @Model(
 *     entity_type = "node",
 *     bundle = "article",
 * )
 */

After

#[Model(
    entity_type: 'node',
    bundle: 'article',
)]
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dieterholvoet created an issue. See original summary.

  • dieterholvoet committed 43030374 on 3.x
    Issue #3560304 by dieterholvoet: Generate model attributes instead of...
dieterholvoet’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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