Data Types

The registerFeedMeDataTypes event #

Plugins can register their own data types.

use verbb\feedme\events\RegisterFeedMeDataTypesEvent;
use verbb\feedme\services\DataTypes;
use yii\base\Event;

Event::on(DataTypes::class, DataTypes::EVENT_REGISTER_FEED_ME_DATA_TYPES, function(RegisterFeedMeDataTypesEvent $e) {
    $e->dataTypes[] = MyDataType::class;
});

Get started with Feed Me

Available for Craft 2 & Craft 3, with Free and Pro versions.