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,
];
}
};
I drop it
like a drop of water
into the ocean.
Will it be counted
will it count?
This only drop I have
in the year 2020
a year of too many
difficulties to count
is a drop in which
my future lies with
a million uncertainties and
a million fears and hopes
just like every other drop
in the ocean of ballots
dropped by each American
as winter arrives in
a year of too many
heartbreaks to count.
The ocean is splitting
in raging storms
and each side says
our boat will be
crushed and sunk
if the other side wins.
I drop it—
my ballot of 2020
like a drop of water
into the raging ocean
and hope
it will be counted
and it will count
as a drop
which floats the boat
carrying us all.
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,
];
}
};