How to remove "last saved" and "author" fields in from in Drupal 8?
answer over here did not help How do I remove the authoring information?
i have tried to hide it via form_alter but no luck...
i would appreciate any help or advice... lost to much time on this already...
part of what i get in kint($form); if this can help:
→'meta' => array(10)
'#type' => string(7) "details"
'#group' => string(8) "advanced"
'#weight' => integer-10
→'#title' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
contents Available methods (14)
protected translatedMarkup -> NULL
protected options -> array(0)
→protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager(4)
contents Available methods (10)
→protected translators -> array(2)
→'30' => array(1)
*DEPTH TOO GREAT*
→'0' => array(1)
*DEPTH TOO GREAT*
→protected sortedTranslators -> array(2)
→Drupal\Core\StringTranslation\Translator\CustomStrings(4)
*DEPTH TOO GREAT*
→Drupal\locale\LocaleTranslation(9)
*DEPTH TOO GREAT*
protected defaultLangcode -> string(2) "en"
public _serviceId -> string(18) "string_translation"
protected string -> string(6) "Status"
protected arguments -> array(0)
→'#attributes' => array(1)
→'class' => array(1)
string(19) "entity-meta__header"
'#tree' => boolTRUE
'#access' => boolTRUE
→'published' => array(4)
'#type' => string(4) "item"
→'#markup' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
contents Available methods (14)
protected translatedMarkup -> NULL
protected options -> array(0)
→protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager(4)
contents Available methods (10)
→protected translators -> array(2)
*DEPTH TOO GREAT*
→protected sortedTranslators -> array(2)
*DEPTH TOO GREAT*
protected defaultLangcode -> string(2) "en"
public _serviceId -> string(18) "string_translation"
protected string -> string(9) "Published"
protected arguments -> array(0)
'#access' => boolFALSE
→'#wrapper_attributes' => array(1)
→'class' => array(1)
string(18) "entity-meta__title"
→'changed' => array(4)
'#type' => string(4) "item"
→'#title' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
contents Available methods (14)
protected translatedMarkup -> NULL
protected options -> array(0)
→protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager(4)
contents Available methods (10)
→protected translators -> array(2)
*DEPTH TOO GREAT*
→protected sortedTranslators -> array(2)
*DEPTH TOO GREAT*
protected defaultLangcode -> string(2) "en"
public _serviceId -> string(18) "string_translation"
protected string -> string(10) "Last saved"
protected arguments -> array(0)
→'#markup' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
contents Available methods (14)
protected translatedMarkup -> NULL
protected options -> array(0)
→protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager(4)
contents Available methods (10)
→protected translators -> array(2)
*DEPTH TOO GREAT*
→protected sortedTranslators -> array(2)
*DEPTH TOO GREAT*
protected defaultLangcode -> string(2) "en"
public _serviceId -> string(18) "string_translation"
protected string -> string(13) "Not saved yet"
protected arguments -> array(0)
→'#wrapper_attributes' => array(1)
→'class' => array(1)
string(23) "entity-meta__last-saved"
→'author' => array(4)
'#type' => string(4) "item"
→'#title' => Drupal\Core\StringTranslation\TranslatableMarkup(5)
contents Available methods (14)
protected translatedMarkup -> NULL
protected options -> array(0)
→protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager(4)
contents Available methods (10)
→protected translators -> array(2)
*DEPTH TOO GREAT*
→protected sortedTranslators -> array(2)
*DEPTH TOO GREAT*
protected defaultLangcode -> string(2) "en"
public _serviceId -> string(18) "string_translation"
protected string -> string(6) "Author"
protected arguments -> array(0)
'#markup' => string(5) "@dmin"
→'#wrapper_attributes' => array(1)
→'class' => array(1)
string(19) "entity-meta__author"