133 {
134 return [
135 $this->ui_factory->table()->ordering(
136 $this,
138 $this->parent_item->getDefaultTitle(),
139 [
140 'title' => $this->ui_factory->table()->column()->text(
141 $this->pons->i18n()->t('title', 'sub'),
142 ),
143 'active' => $this->ui_factory->table()->column()->boolean(
144 $this->pons->i18n()->t('active', 'sub'),
145 $this->pons->out()->ok(),
146 $this->pons->out()->nok(),
147 ),
148 'status' => $this->ui_factory->table()->column()->text(
149 $this->pons->i18n()->t('status', 'sub'),
150 ),
151 'type' => $this->ui_factory->table()->column()->text(
152 $this->pons->i18n()->t('type', 'topitem'),
153 ),
154 'provider' => $this->ui_factory->table()->column()->text(
155 $this->pons->i18n()->t('provider', 'topitem'),
156 ),
157 ]
158 )->withRequest($this->pons->in()->request())
159 ->withActions(
160 [
161 self::ACTION_EDIT => $this->ui_factory->table()->action()->single(
162 $this->pons->i18n()->t('edit'),
163 $this->url_builder->withURI(
165 ),
166 $this->token
167 )->withAsync(true),
168 self::ACTION_TRANSLATE => $this->ui_factory->table()->action()->single(
169 $this->pons->i18n()->t('translate'),
170 $this->url_builder->withURI(
171 $this->pons->flow()->getTranslationAsURI()
172 ),
173 $this->token
174 )->withAsync(true),
175 self::ACTION_ACTIVATE => $this->ui_factory->table()->action()->standard(
176 $this->pons->i18n()->t('activate'),
177 $this->url_builder->withURI(
179 ),
180 $this->token
181 ),
182 self::ACTION_DEACTIVATE => $this->ui_factory->table()->action()->standard(
183 $this->pons->i18n()->t('deactivate'),
184 $this->url_builder->withURI(
186 ),
187 $this->token
188 ),
189 self::ACTION_MOVE => $this->ui_factory->table()->action()->standard(
190 $this->pons->i18n()->t('move'),
191 $this->url_builder->withURI(
193 ),
194 $this->token
195 )->withAsync(true),
196 self::ACTION_DELETE => $this->ui_factory->table()->action()->standard(
197 $this->pons->i18n()->t('delete'),
198 $this->url_builder->withURI(
200 ),
201 $this->token
202 )->withAsync(true),
203 ]
204 )
205 ];
206 }