Skip to content
Snippets Groups Projects

Issue #3326532: Notifications Widget settings: taxonomy and node system name conflict

Open Issue #3326532: Notifications Widget settings: taxonomy and node system name conflict
4 unresolved threads
4 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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,
  • Should we add the ID here as well?

    +              $entityTypeId = $additionalEntityTypesData->getEntityTypeId();
                   $form['additional_entity_type'][$entityType] += $this->prepareEntityTypeForm(
    -                    $additionalEntityType,
    +                    $entityTypeId . "_" . $additionalEntityType,
  • Please register or sign in to reply
  • 147 148 'user' => $this->currentUser,
    148 149 'node' => $entity,
    149 150 'term' => $entity,
    150 151 'comment' => $entity,
  • 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;
  • 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
    Loading