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,
];
}
};
This beach
named “Ocean”
on the other shore
I crossed the sea and ocean
to land on
is the edge of the world
stretching endlessly
in America.
I heard that the waves
sometimes sprinkled
sand dollars
on her Golden Coast.
Even with the shells
sporadic and scarce
and shell pickers
numerous and eager
I neither full of hope
nor without hope
also lean over
to search.
Yet in the ocean storms
violent and capricious
the sand dollars
delicate and exquisite
may already have been crushed
drifting and scattering in gloom
unable to become whole again.
As my heart drained of spirit
my eyes exhausted of strength
inadvertently looking up
toward the vast water
I see the splashing fountain and
giant black back of a whale
emerging—
like hope
burdened with weight
but full of power
once arising
the whole ocean
will surge with it.
尋貝
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,
];
}
};