Issue #3326532: Notifications Widget settings: taxonomy and node system name conflict
Open
requested to merge issue/notificationswidget-3326532:3326532-notifications-widget-settings into 8.x-1.x
4 unresolved threads
Merge request reports
Activity
177 177 $entityTypeName = str_replace('Default', '', $additionalEntityTypesData->get('label')); 178 178 $flag = 1; 179 179 $form['additional_entity_type'][$entityType] += $this->prepareEntityTypeForm( 180 180 $additionalEntityType, 373 373 public function storeEntityNotificationsSettings($entity, $values) { 374 374 375 375 foreach ($entity as $entityType => $entityTypeData) { 376 if (method_exists($entityTypeData, 'getEntityTypeId')) { 377 $entityTypeId = $entityTypeData->getEntityTypeId(); 378 $entityType =$entityTypeId."_".$entityType; - Edited by Bram Driesen
182 183 184 /** 185 * Add entity message to log notification. 186 * 187 * @param \Drupal\Core\Entity\EntityInterface $entity 188 * The entity 189 * @param string $action 190 * The action (Create,update,Delete) 191 * 192 * @return void 193 */ 194 public function addlogNotification(EntityInterface $entity, string $action) { 195 $notificationConfig = \Drupal::config('notifications_widget.settings'); 196 $action_lower = strtolower($action); 197 if ($entity->getEntityTypeId() === 'node') { 198 $allowedActions = "node_type_" . $entity->bundle() . '_enable';
Please register or sign in to reply