SHARE
TWEET

Untitled

a guest Jun 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function MY_MODULE_form_entity_browser_MY_FORM_form_alter(&$form, FormStateInterface $form_state, $form_id) {  
  2.   $form['#pre_render'][] = 'MY_MODULE_pre_render';  
  3. }
  4.  
  5. function MY_MODULE_pre_render($element) {
  6.   kint($element); //Find the tab you want to remove.
  7.   if (...) {
  8.     unset($element['...']);
  9.   }
  10.   return $element;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top