承接 attus/devutil 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

attus/devutil

最新稳定版本:1.14.2

Composer 安装命令:

composer require attus/devutil

包简介

Developer Utilities

README 文档

README

A tool for creating Drupal code quick through drush commands.

Maintenance GitHub license GitHub release GitHub issues

Install:

composer require attus/devutil:^1.0 --dev
drush en devutil

New Entity Type

Content Entity Type

drush devu-nt-ent entity_type_name "Entity Type Label" 
  --bundles 
  --bundle-classes 
  --module=existing_module_name 
  --path=module_relative_path 
  --name="Your Name"

Configuration Entity Type

drush devu-nf-ent entity_type_name "Entity Type Label" 
  --module=existing_module_name 
  --path=module_relative_path 
  --name="Your Name"

Either the name of a module or a path for a new module shall be used. Path shall be relative to Web folder, e.g. "modules/custom".

Use the bundles argument, if you want your new custom contenty entity type to have bundles. In order to create Entity Bundle Classes, use both the bundles and the bundle-classes options.

New class based entity bundle

This command works only if the entity type already exists and is active (i.e. the module defining it is active).

drush devu-nt-bundle entity_type_id bundle_id "Bundle Label" --name="Your Name"

New Annotation Plugin

drush devu-plugin plugin_name --module=existing_module_name --name="Your Name"

You're free to use this module without any restriction but without any warranty.

统计信息

  • 总下载量: 752
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-05-21