declare(strict_types=1);
use Org\Wplake\Advanced_Views\Bridge\Controllers\Layout\Layout_Controller_Base;
return new class extends Layout_Controller_Base {
/**
* @return array
*/
public function get_variables(): array
{
return [
// “custom_variable” => get_post_meta($this->get_object_id(), “your_field”, true),
// “another_var” => $this->get_custom_arguments()[“another”] ?? “”,
];
}
/**
* @return array
*/
public function get_variables_for_validation(): array
{
// it’s better to return dummy data here [ “custom_variable” => “dummy string”, ]
return $this->get_variables();
}
/**
* @return array
*/
public function get_ajax_response(): array
{
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
/**
* @return array
*/
public function get_rest_api_response(WP_REST_Request $request): array
{
// $input = $request->get_json_params();
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
};
If I already forgave you,
what would life be?
With the innocence of a toddler
I would look up to you between my first steps,
and smile —
amazed by your existence
at each sight of you;
amazed by my ability
to reach you on my own.
I would just walk to you with that smile
and no clouds in my heart.
Clear as the blue sky —
I know you are the one,
the only one I would walk to
with no other purpose in the world.
If I just forgive you, forgive each of you,
and forgive myself —
I would just walk, walk towards you,
from moment to moment,
I would walk through life,
already and always
in love.
declare(strict_types=1);
use Org\Wplake\Advanced_Views\Bridge\Controllers\Layout\Layout_Controller_Base;
return new class extends Layout_Controller_Base {
/**
* @return array
*/
public function get_variables(): array
{
return [
// “custom_variable” => get_post_meta($this->get_object_id(), “your_field”, true),
// “another_var” => $this->get_custom_arguments()[“another”] ?? “”,
];
}
/**
* @return array
*/
public function get_variables_for_validation(): array
{
// it’s better to return dummy data here [ “custom_variable” => “dummy string”, ]
return $this->get_variables();
}
/**
* @return array
*/
public function get_ajax_response(): array
{
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
/**
* @return array
*/
public function get_rest_api_response(WP_REST_Request $request): array
{
// $input = $request->get_json_params();
// $message = $this->get_container()->get(MyClass::class)->myMethod();
return [
// “message” => $message,
];
}
};