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
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 {