mglaman / drupal-entity-enhancements
DX improvements for creating entity types
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mglaman/drupal-entity-enhancements
Requires
- php: ^8.1
- drupal/core: ^10
- drupal/entity: ^1.4
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- mikey179/vfsstream: ^1.6
- phpspec/prophecy-phpunit: ^2.2
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.9
- symfony/css-selector: ^6.4 || ^7.0
- symfony/phpunit-bridge: ^6.4 || ^7.0
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 {