27 lines
686 B
PHP
27 lines
686 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace MailPoet\EmailEditor\Engine;
|
|
|
|
use MailPoet\Validator\Builder;
|
|
|
|
class EmailApiController {
|
|
/**
|
|
* @return array - Email specific data such styles.
|
|
*/
|
|
public function getEmailData(): array {
|
|
// Here comes code getting Email specific data that will be passed on 'email_data' attribute
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Update Email specific data we store.
|
|
*/
|
|
public function saveEmailData(array $data, \WP_Post $emailPost): void {
|
|
// Here comes code saving of Email specific data that will be passed on 'email_data' attribute
|
|
}
|
|
|
|
public function getEmailDataSchema(): array {
|
|
return Builder::object()->toArray();
|
|
}
|
|
}
|