I’m making a customized Drupal eight theme, and I wish to change the presentation of the listed content material of the frontpage – solely the article content material sort.
To try this correctly – avoiding utilizing CSS hack – I’ve to change the show mode settings that the native view “frontpage” use to index content material – named Teaser. And I’ve to do this modification of that “show mode settings” on the theme set up and thus configure the theme correctly to do this modification at set up.
In particulars: I would like to vary the “picture type” of the “teaser show mode” of the article content material sort.
By default it use the picture type “giant” I would like it to make use of a brand new picture type “hp_wide” that the theme import – efficiently – at theme set up.
From my analysis, I’ve discovered that I’ve to create a PHP perform in MyThEme.theme with
Drupal::configFactory()->getEditable($identify), it’s the right approach? If sure how can I goal that particular discipline settings, how can I do know the “path” of that settings?