@@ -22,7 +22,7 @@ class CustomFieldFactory extends BaseColumnFactory
2222
2323 private FieldType $ field_type ;
2424
25- private TableScreenContext $ table_screen_context ;
25+ private TableScreenContext $ table_context ;
2626
2727 private ComponentFactory \BeforeAfter $ before_after ;
2828
@@ -31,7 +31,7 @@ class CustomFieldFactory extends BaseColumnFactory
3131 public function __construct (
3232 DefaultSettingsBuilder $ default_settings_builder ,
3333 ComponentFactory \CustomFieldFactory $ custom_field_factory ,
34- TableScreenContext $ table_screen_context ,
34+ TableScreenContext $ table_context ,
3535 FieldType $ field_type ,
3636 ComponentFactory \BeforeAfter $ before_after ,
3737 ComponentFactory \Pro \TogglePromotionFactory $ pro_promotion_factory
@@ -42,15 +42,15 @@ public function __construct(
4242
4343 $ this ->custom_field_factory = $ custom_field_factory ;
4444 $ this ->field_type = $ field_type ;
45- $ this ->table_screen_context = $ table_screen_context ;
45+ $ this ->table_context = $ table_context ;
4646 $ this ->before_after = $ before_after ;
4747 $ this ->pro_promotion_factory = $ pro_promotion_factory ;
4848 }
4949
5050 protected function get_settings (Config $ config ): ComponentCollection
5151 {
5252 return new ComponentCollection ([
53- $ this ->custom_field_factory ->create ($ this ->table_screen_context )->create ($ config ),
53+ $ this ->custom_field_factory ->create ($ this ->table_context )->create ($ config ),
5454 $ this ->field_type ->create ($ config ),
5555 $ this ->before_after ->create ($ config ),
5656 $ this ->pro_promotion_factory ->create (__ ('Enable Editing ' , 'codepress-admin-columns ' ))->create ($ config ),
@@ -80,15 +80,15 @@ protected function get_formatters(Config $config): FormatterCollection
8080 return $ formatters ->prepend (
8181 Aggregate::from_array ([
8282 new AC \Formatter \MetaCollection (
83- $ this ->table_screen_context ->get_meta_type (), $ config ->get ('field ' , '' )
83+ $ this ->table_context ->get_meta_type (), $ config ->get ('field ' , '' )
8484 ),
8585 new AC \Formatter \Count (),
8686 ])
8787 );
8888 }
8989
9090 return $ formatters ->prepend (
91- new AC \Formatter \Meta ($ this ->table_screen_context ->get_meta_type (), $ config ->get ('field ' , '' ))
91+ new AC \Formatter \Meta ($ this ->table_context ->get_meta_type (), $ config ->get ('field ' , '' ))
9292 );
9393 }
9494
0 commit comments