cyberitas/io_utils 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

cyberitas/io_utils

最新稳定版本:v5.2.0

Composer 安装命令:

composer require cyberitas/io_utils

包简介

Drupal import export utilities

关键字:

README 文档

README

This module provides several utilities exposed via the drush command line to import, export, and manipulate Drupal entities.

Installation

This module requires some composer based dependencies. From your drupal root run the following commands:

composer require cyberitas/io_utils
drush pm:enable -y io_utils

Search and Replace Usage

Search and replace uses regular expressions, allowing back references, to replace values in all published entities. If the field-names option is omitted, it will search in all fields and replace in all supported field types.

drush io-utils:replace "/^foo-(.*)-baz$/" "bar-$1-baz" --field-names body,field_example

Export Usage

Creates a file called "drupal_post_17.json" or rewrites it, and puts in a json representation of a Drupal entity with ID of 17, and the final 0 to allow exporting unpublished entities.

io-utils:export-one 17 /example/entity_17.json 0

Import Usage

Reads a file called "block-17.json", and puts saved information into a new Drupal block content

io-utils:import-one-block-content /example/entity_17.json

Other

There are additional bulk operations, search operations, and services available for use. Refer to the drush command help for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2021-05-20