Yoast\WP\SEO\Helpers\Schema
Replace_Vars_Helper::get_identity_function() protected Yoast 1.0
Returns an anonymous function that in turn just returns the given value.
{} Это метод класса: Replace_Vars_Helper{}
Хуков нет.
Возвращает
Closure. A function that returns the given value.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_identity_function( $value );
- $value(смешанный) (обязательный)
- The value that the function should return.
Код Replace_Vars_Helper::get_identity_function() Replace Vars Helper::get identity function Yoast 15.6.2
protected function get_identity_function( $value ) {
return static function() use ( $value ) {
return $value;
};
}