cornernote/yii2-link-behavior

Link behavior for Yii2.

dev-master 2018-11-30 03:59 UTC

This package is auto-updated.

Last update: 2024-11-19 18:43:31 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

Link behavior for Yii2.

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require cornernote/yii2-link-behavior "*"

or add

"cornernote/yii2-link-behavior": "*"

to the require section of your composer.json file.

Usage

In your ActiveRecord class:

public function behaviors() {
    return [
        \cornernote\linkbehavior\LinkBehavior::className(),
        // or
        [
            'class' => \cornernote\linkbehavior\LinkBehavior::className(),
        ],
    ];
}