warn() публичный статический Метод

public static warn ( string $message ) : boolean
$message string that you want to output
Результат boolean
Пример #1
0
 /**
  * @deprecated 0.21.9
  * @internal
  * @return string
  */
 public function get_url()
 {
     Helper::warn('{{site.get_url}} is deprecated, use {{site.link}} instead');
     return $this->link();
 }
Пример #2
0
 /**
  * @deprecated 0.20.0 use link() instead
  * @codeCoverageIgnore
  * @return string
  */
 public function permalink()
 {
     Helper::warn('post.permalink has been removed, please use post.link');
     return $this->link();
 }
Пример #3
0
 /**
  * Add route.
  *
  * @param string  $route
  * @param callable $callback
  * @param array   $args
  * @deprecated since 0.20.0 and will be removed in 1.1
  */
 public static function add_route($route, $callback, $args = array())
 {
     Helper::warn('Timber::add_route (and accompanying methods for load_view, etc. Have been deprecated and will soon be removed. Please update your theme with Route::map. You can read more in the 1.0 Upgrade Guide: https://github.com/timber/timber/wiki/1.0-Upgrade-Guide');
     \Routes::map($route, $callback, $args);
 }
Пример #4
0
 /**
  * Gets the link a menu item points at
  * @internal
  * @deprecated since 0.21.7 use link instead
  * @see link()
  * @return string a full URL like http://mysite.com/thing/
  */
 public function permalink()
 {
     Helper::warn('{{item.permalink}} is deprecated, use {{item.link}} instead');
     return $this->link();
 }
Пример #5
0
 /**
  * @deprecated since 0.21.9 use src() instead
  * @return string
  */
 public function get_url($size = '')
 {
     Helper::warn('{{image.get_url}} is deprecated and will be removed in 1.1; use {{image.src}}');
     return $this->src($size);
 }
Пример #6
0
 /**
  *
  */
 function get_current_url()
 {
     Helper::warn('TimberHelper::get_current_url() is deprecated and will be removed in future versions, use Timber\\URLHelper::get_current_url()');
     return URLHelper::get_current_url();
 }