Rename files in email editor package by WP Coding Standard

[MAILPOET-6240]
This commit is contained in:
Jan Lysý
2024-11-07 11:45:02 +01:00
committed by Jan Lysý
parent 46fb372008
commit b6103b4581
90 changed files with 473 additions and 472 deletions

View File

@ -0,0 +1,26 @@
<?php declare(strict_types = 1);
namespace MailPoet\EmailEditor\Engine;
use MailPoet\EmailEditor\Validator\Builder;
class Email_Api_Controller {
/**
* @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();
}
}