Form wrapper is missing when rendering indididual components on page–node–edit.html.twig template

Form wrapper is missing when rendering indididual components on page–node–edit.html.twig template Using hook_preprocess_page we are able to create variables for form like $variables[‘node_form’] = FALSE; if (\Drupal::routeMatch()->getParameter(‘node’)) { $node = \Drupal::routeMatch()->getParameter(‘node’); $content_type = $node->bundle(); $nodeform = \Drupal::service(‘entity.form_builder’)->getForm($node); $variables[‘node_form’] = $nodeform; } } I can then embed it then in the twig template using # render…

Add Plugin options as subpage to Theme options page

I have an own Theme with an options page. Now I am developing a new Plugin which should have an options page that should be a subpage of the Theme options page. Theme options.php: <?php function xx_theme_admin_menu() { add_menu_page( ‘Theme Settings’, ‘Theme Settings’, ‘manage_options’, ‘xx-settings’, ‘xx_theme_admin_page’ , ‘/wp-content/themes/xx/assets/img/logo-Grayscale-30×25.png’ ); } add_action( ‘admin_menu’, ‘xx_theme_admin_menu’ ); function…

Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well

(oursite.com)/wp-login.php?itsec-hb-token=(our token) all admin logins redirect to the home page (in a logged-in state). all admin users are affected. non-admin users login works well. no code changes have been done. I am the only one allowed to make them. admin admin login worked yesterday. today it’s not. all admin users have the administrator in their…

Magento 2 – Extend core framework

I need to add a new attribute for layout containers. e.g.: customAttribute=”data-block=’minicart’” <container name=”minicart-row” htmlTag=”div” htmlClass=”minicart-wrapper” customAttribute=”data-block=’minicart'”> I can solve this by editing the core at vendor/magento/framework. I already solved it by editing these files: vendor/magento/framework/View/Layout.php vendor/magento/framework/View/Layout/Element.php vendor/magento/framework/View/Layout/etc/elements.xsd vendor/magento/framework/View/Layout/Generator/Container.php vendor/magento/framework/View/Layout/Reader/Container.php but editing the core is not clean obviously… So I created a new module app/code/Core/Extend…