{"id":1008,"date":"2022-01-13T20:18:10","date_gmt":"2022-01-13T11:18:10","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=1008"},"modified":"2022-01-14T10:15:26","modified_gmt":"2022-01-14T01:15:26","slug":"cakephp4-paginatorhelper%e3%81%ae%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=1008","title":{"rendered":"[CakePHP4] PaginatorHelper\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8"},"content":{"rendered":"\n<p>CakePHP2\u3068\u9055\u3044\u3001CakePHP3\u3001CakePHP4\u3067\u306f\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067class\u7b49\u3092\u6307\u5b9a\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p><strong>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/strong>\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3092\u4f7f\u3063\u3066\u3001\u3069\u3046\u3044\u3046HTML\u3067\u51fa\u529b\u3055\u305b\u308b\u304b\u3092\u4e8b\u524d\u306b\u6c7a\u3081\u3066\u304a\u304d\u3001\u305d\u308c\u3092\u5168\u4f53\u3067\u4f7f\u3046\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u304b\u3001\u500b\u5225\u306b\u8a2d\u5b9a\u3059\u308b\u304b\u3001\u4f7f\u3046\u76f4\u524d\u306b\u8a2d\u5b9a\u3059\u308b\u306a\u3069\u3067\u5bfe\u5fdc\u3057\u3001\u67d4\u8edf\u306b\u5bfe\u5fdc\u3057\u3064\u3064\u3082\u3001DRY\u306a\u30b3\u30fc\u30c9\u3092\u4fdd\u3064\u3053\u3068\u304c\u51fa\u6765\u308b\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u3069\u3053\u3067\u8a2d\u5b9a\u3059\u308b\u304b\u306f\u3068\u3082\u304b\u304f\u3001\u8a2d\u5b9a\u65b9\u6cd5\u3068\u3057\u3066\u3001<strong>\u4e8b\u524d\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u30d1\u30bf\u30fc\u30f3<\/strong>\u3068<strong>\u76f4\u66f8\u304d\u30d1\u30bf\u30fc\u30f3<\/strong>\u306e2\u7a2e\u985e\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u76f4\u66f8\u304d\u30d1\u30bf\u30fc\u30f3<\/h2>\n\n\n\n<p>\u304a\u5fd9\u3057\u3044\u65b9\u3001\u8003\u3048\u308b\u306e\u304c\u9762\u5012\u306a\u65b9\u3001\u3053\u306e\u30da\u30fc\u30b8\u3060\u3051\u3069\u3046\u306b\u304b\u306a\u308c\u3070\u3044\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u66f8\u3051\u3070\u3001\u73fe\u5728\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4e2d\u8eab\u306e\u78ba\u8a8d\u3068\u3001\u305d\u306e\u5834\u3067\u306e\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>\/\/ \u73fe\u5728\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5024\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059  \u5f8c\u306fdebug\u3068\u304b\u3067$result\u306e\u4e2d\u8eab\u307f\u305f\u3089\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6587\u5b57\u5217\u304c\u898b\u308c\u308b\n$result = $this-&gt;Paginator-&gt;getTemplates(&#39;number&#39;);\n\n\/\/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u5909\u66f4\u3057\u307e\u3059  bootstarap\u306eclass\u3092\u8ffd\u52a0\u3057\u3066\u3042\u3052\u305f\n$this-&gt;Paginator-&gt;setTemplates([\n    &#39;number&#39; =&gt; &#39;&lt;li class=&quot;page-item&quot;&gt;&lt;a class=&quot;page-link&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;\n]);<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8b\u524d\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u30d1\u30bf\u30fc\u30f3<\/h2>\n\n\n\n<p>config\u306e\u4e2d\u306b\u3001\u9069\u5f53\u306bphp\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7528\u610f\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4eca\u56de\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306f paginator-templates .php\u3068\u3059\u308b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>return [\n    &#39;number&#39; =&gt; &#39;&lt;li class=&quot;page-item&quot;&gt;&lt;a class=&quot;page-link&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n];<\/code><\/pre><\/div>\n\n\n\n<p>\u3093\u3067\u3001AppView.php\u306einitialize\u3067\u3001\u3055\u3063\u304d\u4f5c\u3063\u305fphp\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308b\u3002<br>\u3053\u308c\u3067\u3059\u3079\u3066\u306etemplate\u306e\u4e2d\u3067\u4f7f\u3048\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>\/\/ AppView.php \u306e\u4e2d\u3067\npublic function initialize()\n{\n    $this-&gt;loadHelper(&#39;Paginator&#39;, [&#39;templates&#39; =&gt; &#39;paginator-templates&#39;]);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u5168\u90e8\u306e\u30da\u30fc\u30b8\u304c\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u306a\u304f\u3066\u3044\u3044\u3068\u304b\u306a\u3089\u3001\u3053\u3093\u306a\u611f\u3058\uff1f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>\n\/\/ AppView.php \u306e\u4e2d\u3067\npublic function initialize()\n{\n    \/\/index\u3060\u3051\n    if ($this-&gt;request-&gt;getParam(&#39;action&#39;) === &#39;index&#39;) {\n        $this-&gt;loadHelper(&#39;Paginator&#39;, [&#39;templates&#39; =&gt; &#39;paginator-templates&#39;]);\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3042\u3068\u3001\u3044\u3064\u3082\u306e\u3088\u3046\u306b\u7279\u5b9a\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3060\u3051\u3067\u547c\u3073\u51fa\u3059\u306a\u3089\u3001Controller\u306ebeforeRnder\u3067\u8a2d\u5b9a\u3059\u308b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>public function beforeRender(\\Cake\\Event\\EventInterface $event)\n{\n\tparent::beforeRender($event);\n\t$this-&gt;viewBuilder()-&gt;setHelpers([&#39;Paginator&#39;=&gt;[&#39;templates&#39; =&gt; &#39;paginator-templates&#39;]]);\n\u3000\u3000\u3000\u3000\/\/4.3\u304b\u3089\u306f\u8ffd\u52a0\u306e\u5834\u5408\u3053\u3063\u3061\u3089\u3057\u3044\n\t\/\/$this-&gt;viewBuilder()-&gt;addHelper(&#39;Paginator&#39;, [&#39;templates&#39; =&gt; &#39;paginator-templates&#39;]); \n}<\/code><\/pre><\/div>\n\n\n\n<p>\u5168\u4f53\u306b\u30bb\u30c3\u30c8\u3057\u305f\u3042\u3068\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u9055\u3046\u3082\u306e\u3092\u4e0a\u66f8\u304d\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3001\u30d8\u30eb\u30d1\u30fc\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304b\u3089\u8a2d\u5b9a\u3092\u3051\u305b\u308b\u4e91\u3005\u66f8\u3044\u3066\u3042\u308a\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u304c\u3001<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>class PostsController extends AppController\n{\n    public function beforeRender(EventInterface $event)\n    {\n        parent::beforeRender($event);\n        $builder = $this-&gt;viewBuilder();\n        $builder-&gt;helpers([\n            &#39;CustomStuff&#39; =&gt; $this-&gt;_getCustomStuffConfig(),\n        ]);\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>viewBuilder\u306ehelpers\u304c\u3068\u3046\u306e\u6614\u306b\u7834\u68c4\u3055\u308c\u3066\u3066\u3001setHelpers\u306b\u66f8\u304d\u63db\u3048\u3066\u8a66\u3057\u305f\u304c\u3001\u65e2\u306b\u767b\u9332\u6e08\u307f\u306e\u3092\u5909\u3048\u3088\u3046\u3068\u3057\u3066\u307e\u3059\u3002\u307f\u305f\u3044\u306a\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>The &#8220;Paginator&#8221; alias has already been loaded. The <code>templates<\/code> key has a value of <code>\"paginator-templates\"<\/code> but previously had a value of <code>\"paginator-default-templates\"<\/code><\/p><\/blockquote>\n\n\n\n<p>\u3053\u306e\u8fba\u308a\u306f\u51fa\u6765\u308b\u304b\u3061\u3087\u3063\u3068\u826f\u304f\u5206\u304b\u3089\u305a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/h2>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u4ee5\u4e0b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&#39;nextActive&#39; =&gt; &#39;&lt;li class=&quot;next&quot;&gt;&lt;a rel=&quot;next&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;nextDisabled&#39; =&gt; &#39;&lt;li class=&quot;next disabled&quot;&gt;&lt;a href=&quot;&quot; onclick=&quot;return false;&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;prevActive&#39; =&gt; &#39;&lt;li class=&quot;prev&quot;&gt;&lt;a rel=&quot;prev&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;prevDisabled&#39; =&gt; &#39;&lt;li class=&quot;prev disabled&quot;&gt;&lt;a href=&quot;&quot; onclick=&quot;return false;&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;counterRange&#39; =&gt; &#39;{{start}} - {{end}} of {{count}}&#39;,\n&#39;counterPages&#39; =&gt; &#39;{{page}} of {{pages}}&#39;,\n&#39;first&#39; =&gt; &#39;&lt;li class=&quot;first&quot;&gt;&lt;a href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;last&#39; =&gt; &#39;&lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;number&#39; =&gt; &#39;&lt;li&gt;&lt;a href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;current&#39; =&gt; &#39;&lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;&quot;&gt;{{text}}&lt;\/a&gt;&lt;\/li&gt;&#39;,\n&#39;ellipsis&#39; =&gt; &#39;&lt;li class=&quot;ellipsis&quot;&gt;&amp;hellip;&lt;\/li&gt;&#39;,\n&#39;sort&#39; =&gt; &#39;&lt;a href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&#39;,\n&#39;sortAsc&#39; =&gt; &#39;&lt;a class=&quot;asc&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&#39;,\n&#39;sortDesc&#39; =&gt; &#39;&lt;a class=&quot;desc&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&#39;,\n&#39;sortAscLocked&#39; =&gt; &#39;&lt;a class=&quot;asc locked&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&#39;,\n&#39;sortDescLocked&#39; =&gt; &#39;&lt;a class=&quot;desc locked&quot; href=&quot;{{url}}&quot;&gt;{{text}}&lt;\/a&gt;&#39;,<\/code><\/pre><\/div>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u304c\u4f7f\u308f\u308c\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u306f<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>nextActive<\/code> next() \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30ea\u30f3\u30af\u306e\u6709\u52b9\u306a\u72b6\u614b\u3002<\/li><li><code>nextDisabled<\/code> next() \u306e\u7121\u52b9\u306a\u72b6\u614b\u3002<\/li><li><code>prevActive<\/code> prev() \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30ea\u30f3\u30af\u306e\u6709\u52b9\u306a\u72b6\u614b\u3002<\/li><li><code>prevDisabled<\/code> prev() \u306e\u7121\u52b9\u306a\u72b6\u614b\u3002<\/li><li><code>counterRange<\/code> counter() \u3067 format == range \u306e\u5834\u5408\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>counterPages<\/code> counter() \u3067 format == pages \u306e\u5834\u5408\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>first<\/code> first() \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30ea\u30f3\u30af\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>last<\/code> last() \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30ea\u30f3\u30af\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>number<\/code> numbers() \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30ea\u30f3\u30af\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>current<\/code> \u73fe\u5728\u306e\u30da\u30fc\u30b8\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>ellipsis<\/code> numbers() \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u7701\u7565\u8a18\u53f7\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>sort<\/code> \u65b9\u5411\u306e\u306a\u3044\u30bd\u30fc\u30c8\u30ea\u30f3\u30af\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>sortAsc<\/code> \u6607\u9806\u306e\u30bd\u30fc\u30c8\u30ea\u30f3\u30af\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><li><code>sortDesc<\/code> \u964d\u9806\u306e\u30bd\u30fc\u30c8\u30ea\u30f3\u30af\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u30c7\u30b6\u30a4\u30ca\u30fc\u5074\u3067\u4e0a\u304c\u3063\u3066\u304d\u305f\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306eHTML\u69cb\u9020\u3068\u3001\u30d8\u30eb\u30d1\u30fc\u306e\u4e3b\u529b\u3059\u308b\u69cb\u9020\u304c\u9055\u3063\u3066\u3001CakePHP2\u3060\u3068\u306a\u304b\u306a\u304b\u82e6\u52b4\u3057\u305f\u308a\u3001\u81ea\u524d\u3067\u30d8\u30eb\u30d1\u30fc\u4f5c\u3063\u305f\u308a\u3068\u5384\u4ecb\u3060\u3063\u305f\u3051\u3069\u3001\u3053\u308c\u304c\u3042\u308c\u3070\u4ef2\u826f\u304f\u3067\u304d\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u7d22\u5f15<\/p>\n\n\n\n<p><a href=\"https:\/\/book.cakephp.org\/4\/ja\/views\/helpers\/paginator.html\">https:\/\/book.cakephp.org\/4\/ja\/views\/helpers\/paginator.html<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/book.cakephp.org\/4\/ja\/views\/helpers.html\">https:\/\/book.cakephp.org\/4\/ja\/views\/helpers.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CakePHP2\u3068\u9055\u3044\u3001CakePHP3\u3001CakePHP4\u3067\u306f\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067class\u7b49\u3092\u6307\u5b9a\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3092\u4f7f\u3063\u3066\u3001\u3069\u3046\u3044\u3046HTML\u3067\u51fa\u529b\u3055\u305b\u308b\u304b\u3092\u4e8b\u524d\u306b\u6c7a\u3081&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=1008\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1015,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[21,77],"class_list":["post-1008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cakephp4","tag-cakephp","tag-cakephp4"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/1008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1008"}],"version-history":[{"count":4,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/1008\/revisions"}],"predecessor-version":[{"id":1012,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/1008\/revisions\/1012"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/media\/1015"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}