# yaymail/4.4.2/src/Elements/Column.php

YayMail – WooCommerce Email Customizer, version 4.4.2. 35 lines.

- Page: https://pluginprobe.com/plugins/yaymail/4.4.2/code/src/Elements/Column.php
- Raw: https://pluginprobe.com/plugins/yaymail/4.4.2/raw/src/Elements/Column.php
- Modified: 2026-06-22T06:35:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/4.4.2/code/src/Elements/Column.php#L10-L20`.

```php
<?php
namespace YayMail\Elements;

use YayMail\Abstracts\BaseElement;
use YayMail\Constants\AttributesData;
use YayMail\Utils\SingletonTrait;

/**
 * Column Elements
 */
class Column extends BaseElement {

    use SingletonTrait;

    protected static $type = 'column';

    public $available_email_ids = [ YAYMAIL_ALL_EMAILS ];

    public static function get_data( $width = 5, $attributes = [] ) {
        return [
            'id'                    => uniqid(),
            'type'                  => self::$type,
            'group'                 => 'hidden',
            // only appears inside column_layout
                        'available' => true,
            'children'              => isset( $attributes['children'] ) ? $attributes['children'] : [],

            'data'                  => [
                'width'  => isset( $attributes['width'] ) ? $attributes['width'] : $width,
                'border' => isset( $attributes['border'] ) ? $attributes['border'] : AttributesData::BORDER_DEFAULT,
            ],
        ];
    }
}

```
