CSS class type, 1 => language string, 2 => optional raw HTML to show instead of language string) */ public function rowBadge( Model $node ) : array|null { return null; } /** * Add elements to the Node form * This method returns all elements that will be added. * By default, all elements will be added in order at the end of the form. * To specify placement within the form, @see FormAbstract::setPosition(). * * @param Model $node * @return array */ public function formElements( Model $node ): array { return []; } /** * Any formatting necessary for custom fields added in formElements * * @param Model $node * @param array $values * @return array */ public function processForm( Model $node, array $values ) : array { return $values; } /** * Called after the Node form is saved * * @param Model $node * @param array $values * @return void */ public function formPostSave( Model $node, array $values ): void { } /** * Add elements to the Club Node form * This method returns all elements that will be added. * By default, all elements will be added in order at the end of the form. * To specify placement within the form, @see FormAbstract::setPosition(). * * @param Model $node * @param Club $club * @return array */ public function clubFormElements( Model $node, Club $club ): array { return []; } /** * Any formatting necessary for custom fields added in clubFormElements * * @param Model $node * @param Club $club * @param array $values * @return array */ public function processClubForm( Model $node, Club $club, array $values ) : array { return $values; } /** * Called after the club Node form is saved * * @param Model $node * @param Club $club * @param array $values * @return void */ public function clubFormPostSave( Model $node, Club $club, array $values ): void { } }