| @@ 113-125 (lines=13) @@ | ||
| 110 | /** |
|
| 111 | * @inheritdoc |
|
| 112 | */ |
|
| 113 | protected function updateContent(ManialinkInterface $manialink) |
|
| 114 | { |
|
| 115 | /** @var Frame $contentFrame */ |
|
| 116 | $contentFrame = $manialink->getContentFrame(); |
|
| 117 | $contentFrame->removeAllChildren(); |
|
| 118 | ||
| 119 | $collection = $this->dataCollectionFactory->create($this->getRecordsData()); |
|
| 120 | $collection->setPageSize(20); |
|
| 121 | ||
| 122 | /** @var GridBuilder $gridBuilder */ |
|
| 123 | $gridBuilder = $manialink->getData('grid'); |
|
| 124 | $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight())); |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @return array |
|
| @@ 117-129 (lines=13) @@ | ||
| 114 | /** |
|
| 115 | * @inheritdoc |
|
| 116 | */ |
|
| 117 | protected function updateContent(ManialinkInterface $manialink) |
|
| 118 | { |
|
| 119 | /** @var Frame $contentFrame */ |
|
| 120 | $contentFrame = $manialink->getContentFrame(); |
|
| 121 | $contentFrame->removeAllChildren(); |
|
| 122 | ||
| 123 | $collection = $this->dataCollectionFactory->create($this->getChatCommands($manialink)); |
|
| 124 | $collection->setPageSize(20); |
|
| 125 | ||
| 126 | /** @var GridBuilder $gridBuilder */ |
|
| 127 | $gridBuilder = $manialink->getData('grid'); |
|
| 128 | $contentFrame->addChild($gridBuilder->build($contentFrame->getWidth(), $contentFrame->getHeight())); |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * Get chat commands to display the admin. |
|