摘要:
每一个block的类都有getcachecontext getcachetags getcachemaxage的方法 这个和build返回的数组的#cache设置是基本冲突的 , 有一个就没有另一个。block的默认缓存时间是不过期 阅读全文
posted @ 2018-07-16 18:15
qqisnow2021
阅读(126)
评论(0)
推荐(0)
摘要:
$values = [ 'entity_type' => 'node', 'entity_id' => '1', 'field_name' => 'comment', 'comment_type' => 'comment', ]; $comment = \Drupal::entityTypeMana 阅读全文
posted @ 2018-07-16 16:33
qqisnow2021
阅读(221)
评论(0)
推荐(0)
浙公网安备 33010602011771号