mglaman/drupal-entity-enhancements

There is no license information available for the latest version (0.1.0) of this package.

DX improvements for creating entity types

0.1.0 2024-04-18 17:01 UTC

This package is auto-updated.

Last update: 2024-10-18 18:20:02 UTC


README

DX improvements for creating entity types

Annotation usage

<?php

declare(strict_types=1);

namespace Drupal\mymodule\Entity;

use Drupal\Core\Entity\ContentEntityBase;
use Drupal\user\EntityOwnerInterface;

/**
 * @\EntityEnhancements\Annotation\Model(
 *  id = "my_custom_entity",
 *  owner_entity_access = true,
 *  admin_ui_routes = false,
 * )
 */
final class MyCustomEntity extends ContentEntityBase implements EntityOwnerInterface {