TranslatableController::getValidUrlSegments
Define multiple URL segments that will hit the controller.
Example of valid return: <code> [ 'question-controller', '質問', _t('ExampleController.URL_SEGMENT_SINGULAR', 'question'), _t('ExampleController.URL_SEGMENT_PLURAL', 'questions'), ] </code>
Signature
public function getValidUrlSegments()
Returns
- array
- An array of valid controller url segments.